-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.compose-dev.yaml
68 lines (64 loc) · 1.88 KB
/
example.compose-dev.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
version: '3.8'
services:
# dev-small-business-fridge:
# image: houbystudio/small-business-fridge:latest
# container_name: dev-small-business-fridge
# environment:
# - DB_CONNECTION_STRING=mongodb://sbf-app:password@dev-mongo:27017/sbf-dev?retryWrites=true&w=majority&tls=false&directConnection=true&authSource=admin
# - API_SECRET=ffbbcb61-0000-4184-b7e2-
# - OPENAI_API_KEY=openapisecret
# - MAIL_PORT=1025
# - MAIL_HOST=dev-maildev
# - CREDS_IDENTITY_METADATA=https://login.microsoftonline.com/{tenant-id}/v2.0/.well-known/openid-configuration
# - CREDS_CLIENT_ID=26ea4641-db92-4cd4-a080-8027970bd7e5
# - CREDS_CLIENT_SECRET=26ea4641db924cd4a0808027970bd7e5
# - CREDS_TENANT_ID={tenant-id}
# ports:
# - 3000:3000
# volumes:
# - dev-images:/usr/src/app/public/images
# - dev-backup:/usr/src/app/database-backup
# - dev-logs:/usr/src/app/logs
# restart: unless-stopped
# depends_on:
# - dev-mongo
dev-mongo:
image: mongo
restart: always
ports:
- 27017:27017
environment:
MONGO_INITDB_ROOT_USERNAME: sbf-app
MONGO_INITDB_ROOT_PASSWORD: password
volumes:
- dev-database:/data/db
dev-mongo-express:
image: mongo-express
restart: always
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: sbf-app
ME_CONFIG_MONGODB_ADMINPASSWORD: password
ME_CONFIG_MONGODB_URL: mongodb://sbf-app:password@dev-mongo:27017/
depends_on:
- dev-mongo
dev-maildev:
image: maildev/maildev
restart: always
environment:
- TZ=Europe/Prague
- MAILDEV_WEB_PORT=1080
- MAILDEV_SMTP_PORT=1025
ports:
- '8080:1080'
- '8025:1025'
logging:
driver: 'json-file'
options:
max-size: '1m'
volumes:
# dev-images:
# dev-backup:
# dev-logs:
dev-database: