-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
51 lines (43 loc) · 969 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
48
49
50
51
version: '3.8'
services:
quiz-app:
image: dleclercpro/quiz:latest
container_name: quiz-app
networks:
- custom
depends_on:
- quiz-redis
environment:
NODE_ENV: production
quiz-nginx:
container_name: quiz-nginx
image: dleclercpro/reverse-proxy:latest
restart: always
ports: # Comment out when getting SSL certs for the first time
- 443:443 # HTTPS
- 80:80 # HTTP
networks:
- custom
volumes:
- letsencrypt:/etc/letsencrypt # Keep SSL certificates
- dhparams:/usr/dhparams # Keep DH params file
depends_on:
- quiz-app
env_file:
- .env
quiz-redis:
image: redis:latest
container_name: quiz-redis
restart: always
networks:
- custom
volumes:
- redis:/data
volumes:
redis:
letsencrypt:
dhparams:
networks:
# Custom network to communicate with external services/containers
custom:
external: true