-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (51 loc) · 1.4 KB
/
docker-compose.yml
File metadata and controls
57 lines (51 loc) · 1.4 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
version: '3.7'
services:
api:
build:
context: .
dockerfile: stages/development/Dockerfile.api
image: pretrained-app-api-development
volumes:
- ./api:/home/pn/api:Z
network_mode: host
environment:
- API_ENV=development
command: python development_server.py
frontend:
build:
context: .
dockerfile: stages/development/Dockerfile.frontend
image: pretrained-app-frontend-development
volumes:
- ./frontend:/home/node/pretrained-app/frontend:Z
network_mode: host
command: bash -c "cd /home/node/pretrained-app/frontend && npx expo start --web"
nginx:
build:
context: .
dockerfile: stages/development/Dockerfile.nginx
network_mode: host
mongo:
build:
context: .
dockerfile: stages/development/Dockerfile.mongo
container_name: app_mongo
environment:
MONGO_INITDB_DATABASE: "pretrained_app"
MONGO_INITDB_ROOT_PASSWORD_FILE: /run/secrets/app_mongo_root_password
MONGO_INITDB_ROOT_USERNAME: "root"
MONGO_PASSWORD_FILE: /run/secrets/app_mongo_password
MONGO_USER: "admin"
secrets:
- app_mongo_password
- app_mongo_root_password
volumes:
- mongo:/data/db
network_mode: host
secrets:
app_mongo_password:
file: ./stages/development/mongo/password
app_mongo_root_password:
file: ./stages/development/mongo/root_password
volumes:
mongo: