-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (54 loc) · 1.38 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
version: '3.8'
services:
mongo:
image: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: root
logging:
driver: none
core:
build: ./core
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload --reload-dir app/
volumes:
- ./core/:/app/
ports:
- 8003:8000
environment:
- DATABASE_URI=mongodb://root:root@mongo:27017/
depends_on:
- mongo
backend:
build: ./backend
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload --reload-dir app/ --forwarded-allow-ips=*
volumes:
- ./backend/:/app/
ports:
- 8001:8080
environment:
- DATABASE_URI=mongodb://root:root@mongo:27017/
depends_on:
- mongo
frontend:
build: ./frontend
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload --reload-dir app/ --forwarded-allow-ips=*
volumes:
- ./frontend/:/app/
ports:
- 8002:8000
environment:
- DATABASE_URI=mongodb://root:root@mongo:27017/
depends_on:
- backend
nginx:
image: nginx:latest
ports:
- "443:443"
- "5986:5986"
volumes:
- ./nginx_config.conf:/etc/nginx/conf.d/default.conf
- ./server-cert1.pem:/etc/nginx/server-cert1.pem
- ./server-key1.pem:/etc/nginx/server-key1.pem
depends_on:
- frontend