-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (57 loc) · 1.32 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
60
61
version: '3.9'
services:
db:
container_name: web3_database
build:
context: ./database
volumes:
- ${PWD}/database/main.py:/app/main.py
- database:/app/instance
backend:
container_name: web3_backend
build:
context: ./backend
target: debug
stdin_open: true # comment out for build.target:prod
tty: true # comment out for build.target:prod
ports:
- 5000:5000
- 5678:5678
volumes:
- ${PWD}/backend:/app
- database:/app/instance
restart: always
depends_on:
- db
frontend:
container_name: web3_frontend
build:
context: ./frontend
ports:
- '3000:3000'
volumes:
- ${PWD}/frontend:/app
restart: always
depends_on:
- backend
links:
- 'backend'
interactive_db:
container_name: web3_interactive_db
tty: true
stdin_open: true
build:
context: .
dockerfile: ./interactive_db/Dockerfile
volumes:
- ${PWD}/backend/server:/app/server
- ${PWD}/backend/util:/app/util
- ${PWD}/database:/app/database
- ${PWD}/interactive_db/.ipython:/app/.ipython
- /app/.ipython/profile_default/pid
- /app/.ipython/profile_default/security
- database:/app/instance
environment:
- IPYTHONDIR=/app/.ipython
volumes:
database: