-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.dev.yaml
65 lines (60 loc) · 1.43 KB
/
docker-compose.dev.yaml
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
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
ports:
- 3306:3306
networks:
- backend-network
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.dev
volumes:
- ./backend/crowdplay_backend:/usr/src/crowdplay/crowdplay_backend
depends_on:
- storage
ports:
- 5000:5000
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: