forked from tongdun/data4test
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (38 loc) · 810 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (38 loc) · 810 Bytes
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
version: "3.3"
services:
db:
image: josingcjx/db-data4test:5.0
container_name: db-data4test
command: --default-authentication-plugin=mysql_native_password
ports:
- "33066:3306"
volumes:
- mysql:/data
networks:
- data4test
environment:
- MYSQL_ROOT_PASSWORD:password
- MYSQL_USER:admin
- MYSQL_PASSWORD:data4test
data4test:
image: josingcjx/data4test:5.0
container_name: data4test
restart: always
depends_on:
- db
ports:
- "9088:9088"
networks:
- data4test
environment:
- MYSQL_PORT:3306
- MYSQL_HOST:db
- MYSQL_PASSWORD:password
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- data4test:/data
networks:
data4test: {}
volumes:
mysql: {}
data4test: {}