-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (55 loc) · 1.04 KB
/
docker-compose.yml
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
version: '3.8'
services:
mongo:
image: mongo
restart: always
volumes:
- /data/db:/data/db
logging:
driver: none
api:
build:
context: api
restart: always
depends_on:
- mongo
volumes:
- api-build:/opt/application/api-build
- /data/demo-storage:/data/storage
env_file: api/production.env
environment:
API_SECRET: ${API_SECRET}
healthcheck:
test: curl -s -w '%{http_code}' http://localhost:3000/api/describe
timeout: 5s
interval: 10s
web:
build:
context: web
depends_on:
api:
condition: service_healthy
volumes:
- api-build:/opt/application/api
- web-build:/var/www/html
nginx:
build:
context: nginx
restart: always
depends_on:
- web
ports:
- 8081:80
volumes:
- web-build:/var/www/html
cron:
build:
context: cron
restart: always
depends_on:
- api
environment:
API_SECRET: ${API_SECRET}
volumes:
api-build:
web-build: