-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (51 loc) · 1.12 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
version: '3'
volumes:
mongo_data:
driver: local
services:
nginx:
image: nginx:1.24.0
volumes:
- ./nginx/nginx-local-frontend-dev.conf:/etc/nginx/nginx.conf
- ./nginx/config:/etc/ssl
ports:
- 443:443
depends_on:
- api
# frontend:
# image: frontend
# env_file:
# - .env
# build:
# dockerfile: Dockerfile
# context: ./frontend/
# ports:
# - 8080:8080
# restart: unless-stopped
# # depends_on:
# # - api
api:
image: api
ports:
- 8001:8000
#- 5678:5678
restart: unless-stopped
volumes:
- ./api/subsetter:/subsetter
build:
context: ./api/
dockerfile: Dockerfile
#command: ["pip install debugpy -t /tmp && python /tmp/debugpy --wait-for-client --listen 0.0.0.0:5678 -m uvicorn api.main:app --host 0.0.0.0 --port 8000"]
env_file:
- .env
depends_on:
- mongodb
mongodb:
image: mongo:5.0
ports:
- '27017:27017'
volumes:
- mongo_data:/data/db
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=password