-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (56 loc) · 1.48 KB
/
docker-compose.yml
File metadata and controls
62 lines (56 loc) · 1.48 KB
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
version: "3.9"
services:
# MongoDB Service
mongo_db:
container_name: db_container
image: mongo:latest
restart: always
volumes:
- mongo_db:/data/db
networks:
- the-dynamics-network
# Node API Service
api:
container_name: api_container
build:
context: .
dockerfile: Dockerfile
restart: always
environment:
PORT: 5000
NODE_ENV: development
MONGODB_URI: mongodb://mongo_db:27017/the-dynamics
JWT_SECRET: secret
depends_on:
- mongo_db
networks:
- the-dynamics-network
# NGINX Service
nginx:
container_name: nginx_container
image: nginx:latest
restart: always
ports:
- "80:80"
- "443:443"
depends_on:
- api
- mongo_db
networks:
- the-dynamics-network
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/dhparam:/etc/nginx/dhparam
- ./certbot/conf/:/etc/nginx/ssl/
- ./certbot/data:/usr/share/nginx/html/letsencrypt
certbot:
image: certbot/certbot
volumes:
- ./certbot/conf/:/etc/letsencrypt
- ./certbot/logs/:/var/log/letsencrypt
- ./certbot/data:/usr/share/nginx/html/letsencrypt
networks:
the-dynamics-network:
driver: bridge
volumes:
mongo_db: {}