-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose_dev.yml
More file actions
63 lines (59 loc) · 1.41 KB
/
Copy pathdocker-compose_dev.yml
File metadata and controls
63 lines (59 loc) · 1.41 KB
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
# version: "3.9"
services:
# frontend:
# build:
# context: ./frontend
# dockerfile: Dockerfile.frontend
# args:
# - REACT_APP_BACKEND_URL_ARG=http://backend:8888
# ports:
# - "3000:3000"
# volumes:
# - ./frontend:/app
# - /app/node_modules
# environment:
# - WATCHPACK_POLLING=true
# - CHOKIDAR_USEPOLLING=true
# - WDS_SOCKET_HOST=localhost
# - WDS_SOCKET_PORT=3000
# backend:
# build:
# context: ./f1backend
# dockerfile: Dockerfile.backend
# ports:
# - "8888:8888"
# volumes:
# - ./f1backend:/app
# environment:
# - RUN_MODE=container
# - DATABASE_URL=mysql://root:123@mysql:3306/f1db
# depends_on:
# - mysql
mysql:
image: mysql:latest
environment:
MYSQL_ROOT_PASSWORD: 123
MYSQL_DATABASE: f1db
command: --sql-mode="NO_ENGINE_SUBSTITUTION"
volumes:
- ./database/f1db.sql:/docker-entrypoint-initdb.d/f1db.sql
ports:
- "3306:3306"
# dbgate:
# image: dbgate/dbgate
# restart: always
# ports:
# - 3001:3000
# volumes:
# - dbgate-data:/root/.dbgate
# environment:
# CONNECTIONS: con1
# LABEL_con1: MySql
# SERVER_con1: mysql
# USER_con1: root
# PASSWORD_con1: 123
# PORT_con1: 3306
# ENGINE_con1: mysql@dbgate-plugin-mysql
volumes:
dbgate-data:
driver: local