-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.production.yaml
72 lines (64 loc) · 1.55 KB
/
compose.production.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
69
70
71
name: subaybay-production
services:
app:
image: brymermeneses/subaybay-app:latest
restart: unless-stopped
ports:
- ${APP_PORT}:3000
env_file:
- ./.env
depends_on:
database:
condition: service_started
backend:
condition: service_started
docs:
condition: service_started
labels:
- com.centurylinklabs.watchtower.enable=true
backend:
image: brymermeneses/subaybay-backend:latest
restart: unless-stopped
ports:
- ${BACKEND_PORT}:8080
env_file:
- ./.env
depends_on:
database:
condition: service_started
labels:
- com.centurylinklabs.watchtower.enable=true
docs:
image: brymermeneses/subaybay-docs:latest
restart: unless-stopped
ports:
- ${DOCS_PORT}:4173
env_file:
- ./.env
labels:
- com.centurylinklabs.watchtower.enable=true
database:
image: mongo
restart: unless-stopped
volumes:
- db-data:/data/db
- ./mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
ports:
- ${DATABASE_PORT}:27017
env_file:
- ./.env
environment:
MONGO_INITDB_ROOT_USERNAME: ${DATABASE_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${DATABASE_PASSWORD}
labels:
- com.centurylinklabs.watchtower.enable=false
watchtower:
image: containrrr/watchtower
restart: unless-stopped
environment:
WATCHTOWER_LABEL_ENABLE: 1
WATCHTOWER_SCHEDULE: '* * * * *'
volumes:
- /var/run/docker.sock:/var/run/docker.sock
volumes:
db-data: