-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (49 loc) · 1.07 KB
/
docker-compose.yml
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
---
version: '3'
services:
dbclient:
build: .
container_name: mysql-client
stdin_open: true
tty: true
environment:
- MYSQL_HOST=dbserver
- MYSQL_PORT=3306
- MYSQL_USER=root
- MYSQL_PASSWORD=root
- ACTION_DATABASE=create
- ACTION_DATABASE_NAME=testdb
- ACTION_USER=create
- ACTION_USER_NAME=test-user
- ACTION_USER_PASSWORD=adminadmin123
- ACTION_USER_ALLOWED_HOSTS=%
# volumes:
# - .mysql-conf:/etc/scriptor-conf/my.cnf
depends_on:
database:
condition: service_healthy
networks:
- database
database:
image: mysql:5.7
container_name: dummy-mysql
restart: always
healthcheck:
test: ["CMD", "mysql" ,"--password=root", "--user=root", "--execute=SHOW DATABASES;"]
interval: 15s
timeout: 20s
retries: 5
start_period: 15s
environment:
- MYSQL_ROOT_PASSWORD=root
networks:
- database
adminer:
image: adminer
restart: always
ports:
- 8080:8080
networks:
- database
networks:
database: