-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (64 loc) · 1.46 KB
/
docker-compose.yml
File metadata and controls
68 lines (64 loc) · 1.46 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
58
59
60
61
62
63
64
65
66
67
68
version: '2'
networks:
ChemiCloud:
driver: bridge
ipam:
# driver: default
config:
- subnet: 172.18.18.0/24
# - subnet: 10.5.0.0/16
gateway: 172.18.18.1
services:
core:
container_name: explosive_core
networks:
ChemiCloud:
ipv4_address: 172.18.18.2
build:
context: .
dockerfile: Dockerfile.core
stdin_open: true
tty: true
expose:
- 8000
ports:
- 8000:8000
volumes:
- ./main:/usr/src/main
command: "/root/miniconda3/envs/py310/bin/uvicorn runApiServer:app --port 8000 --host 0.0.0.0"
# - "bash"
# - "/root/miniconda3/envs/py310/bin/uvicorn runApiServer:app --port 8000 --host 0.0.0.0"
mongodb:
depends_on:
- core
image: mongo:latest
container_name: explosive_mongo
networks:
ChemiCloud:
ipv4_address: 172.18.18.3
expose:
- 27017
ports:
- 27017:27017
volumes:
- ./data:/data/db
frontend:
container_name: explosive_frontend
depends_on:
- core
build:
context: .
dockerfile: Dockerfile.frontend
networks:
ChemiCloud:
ipv4_address: 172.18.18.4
expose:
- 8888
ports:
- 8888:8888
volumes:
# - ./dist:/usr/share/nginx/html
- ./dist:/usr/src/dist
# command: bash -c 'serve dist && nginx -g daemon off; '
command: 'pm2 serve dist 3000 && nginx -g "daemon off;" '
# command: 'nginx && serve dist'