-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
51 lines (51 loc) · 1.08 KB
/
docker-compose.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
version: "3.8"
services:
db:
image: mysql
restart: always
environment:
MYSQL_DATABASE: 'autota'
MYSQL_USER: 'user'
MYSQL_PASSWORD: 'password'
MYSQL_ROOT_PASSWORD: 'password'
ports:
- '3306:3306'
expose:
- '3306'
volumes:
# - ./database:/var/lib/mysql Remove this line to use persistent mysql database between builds
- ./init-db:/docker-entrypoint-initdb.d
backend:
container_name: backend
restart: unless-stopped
environment:
DB_USER: "user"
DB_PASSWORD: "password"
DB_HOST: "db"
DB_NAME: "autota"
FLASK_DEBUG: "True"
TABOT_DIR: "/ta-bot"
build:
context: api
ports:
- "5001:5001"
volumes:
- "./api:/app"
- "./ta-bot:/ta-bot"
links:
- db
depends_on:
- db
frontend:
container_name: frontend
restart: unless-stopped
environment:
REACT_APP_BASE_API_URL: http://127.0.0.1:5001/api
build:
context: ui
volumes:
- "./ui:/app"
ports:
- "3000:3000"
depends_on:
- backend