-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
66 lines (57 loc) · 1.32 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
62
63
64
65
66
version: '3.8'
services:
samurai-app:
container_name: samurai-app
image: dleclercpro/samurai:latest
restart: always
depends_on:
- samurai-redis
- samurai-mongo
networks:
- custom
environment:
NODE_ENV: production
samurai-nginx:
container_name: samurai-nginx
image: dleclercpro/reverse-proxy:latest
restart: always
ports: # Comment out when putting behind load balancer
- 443:443 # HTTPS
- 80:80 # HTTP
networks:
- custom
volumes:
- letsencrypt:/etc/letsencrypt # Keep SSL certificates
- dhparams:/usr/dhparams # Keep Dh params file
depends_on:
- samurai-app
env_file:
- .env.production
samurai-redis:
container_name: samurai-redis
image: redis:6.2
restart: always
networks:
- custom
volumes:
- redis:/data
samurai-mongo:
container_name: samurai-mongo
image: mongo:4.4.4
restart: always
networks:
- custom
volumes:
- ./Apps/DatabaseApp/init.js:/docker-entrypoint-initdb.d/init.js:ro # Database initialization script
- mongo:/data/db
env_file:
- .env.production
volumes:
redis:
mongo:
letsencrypt:
dhparams:
networks:
# Custom network to communicate with external services/containers
custom:
external: true