-
Notifications
You must be signed in to change notification settings - Fork 56
/
docker-compose.yml
47 lines (47 loc) · 959 Bytes
/
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
version: '3.9'
services:
app:
build: .
deploy:
replicas: 5
restart_policy:
max_attempts: 3
condition: on-failure
update_config:
parallelism: 3
delay: 10s
depends_on:
- mongo
- redis
volumes:
- ./config:/app/config
environment:
PORT: 3000
VAPID_SUBJECT: 'mailto:[email protected]'
VAPID_PRIVATE_KEY: ''
VAPID_PUBLIC_KEY: ''
nginx:
image: nginx
ports:
- '3000:80'
depends_on:
- app
environment:
NGINX_ENVSUBST_TEMPLATE_SUFFIX: '.conf'
API_HOST: app
API_PORT: 3000
deploy:
placement:
constraints: [ node.role == manager ]
volumes:
- ./docker/nginx/templates:/etc/nginx/templates/
mongo:
image: mongo
ports:
- '27018:27017'
volumes:
- ./docker/volumes/mongodb_data_container:/data/db
redis:
image: redis
ports:
- '6379:6379'