-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-prod.yaml
56 lines (56 loc) · 1.21 KB
/
docker-compose-prod.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
version: "3.8"
services:
db:
image: mysql
restart: always
environment:
MYSQL_DATABASE: 'autota'
MYSQL_USER: 'user'
MYSQL_PASSWORD: 'password'
MYSQL_ROOT_PASSWORD: 'password'
ports:
- '127.0.0.1:3306:3306'
expose:
- '3306'
volumes:
- ./database:/var/lib/mysql
- ./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: "False"
TABOT_DIR: "/ta-bot"
AUTH_URL: "http://host.docker.internal:4000/"
build:
context: api
dockerfile: Dockerfile.prod
ports:
- "127.0.0.1:8009:5000"
extra_hosts:
- "host.docker.internal:host-gateway"
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: https://tabot.sh/api
build:
context: ui
dockerfile: Dockerfile.prod
volumes:
- "./ui:/app"
ports:
- "127.0.0.1:8008:3000"
depends_on:
- backend