-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.vscode.yml
73 lines (68 loc) · 1.74 KB
/
docker-compose.vscode.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
62
63
64
65
66
67
68
69
70
71
72
73
version: "3"
services:
storage:
image: crowdplay-db-dev
environment:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: crowdplaydb
MYSQL_USER: crowdplayuser
MYSQL_PASSWORD: userpassword
build: ./storage
volumes:
- ./data/mysql-dev:/var/lib/mysql
networks:
- backend-network
ports:
- 3306:3306
- 33060:33060
backend:
image: crowdplay-api-dev
environment:
APP_SETTINGS: crowdplay_backend.config.Config
SECRET_KEY: Super secret key!
APP_HOST: 0.0.0.0
APP_PORT: 5000
DATABASE_URI: mysql+pymysql://crowdplayuser:userpassword@storage/crowdplaydb
MYSQL_DATABASE: crowdplaydb
MYSQL_USER: crowdplayuser
MYSQL_PASSWORD: userpassword
MYSQL_HOST: storage
build:
context: ./backend
dockerfile: Dockerfile.vscode
command:
[
"sh",
"-c",
"DISPLAY=:0 pip install debugpy -t /tmp && xvfb-run -n0 python /tmp/debugpy --wait-for-client --listen 0.0.0.0:5678 -m crowdplay_backend"
]
volumes:
- ./backend/crowdplay_backend:/usr/src/crowdplay/crowdplay_backend
depends_on:
- storage
ports:
- 5000:5000
- 5678:5678
networks:
- backend-network
- frontend-network
frontend:
image: crowdplay-ui-dev
environment:
DEV_HOST: 0.0.0.0
DEV_PORT: 9000
PROXY_TARGET: http://backend:5000
build:
context: ./frontend
dockerfile: Dockerfile.dev
volumes:
- ./frontend/src:/usr/src/crowdplay/src
depends_on:
- backend
ports:
- 9000:9000
networks:
- frontend-network
networks:
backend-network:
frontend-network: