-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (41 loc) · 777 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
46 lines (41 loc) · 777 Bytes
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
version: "3.9"
services:
nginx:
image: nginx:latest
container_name: ems_nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/certs:/etc/nginx/certs
depends_on:
- web
restart: always
web:
build: .
container_name: ems_flask_app
expose:
- "5000"
env_file:
- .env
depends_on:
- mongo
- redis
restart: always
mongo:
image: mongo:6.0
container_name: ems_mongodb
volumes:
- mongo_data:/data/db
restart: always
redis:
image: redis:7
container_name: ems_redis
command: redis-server --appendonly yes
volumes:
- redis_data:/data
restart: always
volumes:
mongo_data:
redis_data: