-
Notifications
You must be signed in to change notification settings - Fork 1
/
Docker-compose.yml
52 lines (51 loc) · 1.1 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
version: "3"
services:
nginx:
container_name: nginx
build:
context: ./
dockerfile: nginx/Dockerfile
depends_on:
- backend
ports:
- "80:80"
- "443:443"
restart: always
networks:
- decrypto-app
volumes:
- ../certbot/conf:/etc/letsencrypt
- ../certbot/www:/var/www/certbot
certbot:
image: certbot/certbot
container_name: certbot_service
volumes:
- ../certbot/conf:/etc/letsencrypt
- ../certbot/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
backend:
container_name: backend
build: ./backend
depends_on:
- mongo
ports:
- "8080:8080"
restart: always
networks:
- decrypto-app
mongo:
container_name: mongo
image: mongo
ports:
- 27017:27017
env_file:
- ./db/.env
restart: always
networks:
- decrypto-app
volumes:
- ../db/data:/data/db
- ../db/mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
networks:
decrypto-app:
driver: bridge