-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (43 loc) · 923 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:
auth-app:
image: dleclercpro/dummy-authenticator:latest
container_name: auth-app
networks:
- custom
depends_on:
- auth-redis
environment:
NODE_ENV: production
auth-nginx:
container_name: auth-nginx
image: dleclercpro/reverse-proxy:latest
restart: always
ports:
- 443:443 # HTTPS
- 80:80 # HTTP
networks:
- custom
volumes:
- letsencrypt:/etc/letsencrypt # Keep SSL certificates
- dhparams:/usr/dhparams # Keep DH params file
depends_on:
- auth-app
env_file:
- .env
auth-redis:
image: redis:latest
container_name: auth-redis
restart: always
networks:
- custom
volumes:
- redis:/data
volumes:
redis:
letsencrypt:
dhparams:
networks:
# Custom network to communicate with external services/containers
custom:
external: true