-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
49 lines (43 loc) · 939 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
version: "3"
services:
db:
container_name: core_db
image: mongo
restart: always
# environment:
# MONGO_INITDB_ROOT_USERNAME: mongo_user
# MONGO_INITDB_ROOT_PASSWORD: mongo_password
volumes:
- mongodb_data:/data/db
networks:
- servernet
server:
container_name: core_server
build: .
restart: always
command: gunicorn -w 4 -k uvicorn.workers.UvicornWorker server:app --bind 0.0.0.0:8000
expose:
- 8000
env_file:
- .env
depends_on:
- db
links:
- db
networks:
- servernet
nginx:
container_name: nginx
build: ./nginx
restart: always
ports:
- 9000:80
depends_on:
- server
networks:
- servernet
volumes:
mongodb_data:
networks:
servernet:
driver: bridge