-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
69 lines (69 loc) · 1.84 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
services:
sqlui_db:
container_name: sqlui_db
image: mysql/mysql-server:latest
environment:
MYSQL_ROOT_PASSWORD: root
ports:
- '3306:3306'
volumes:
- ./sql/init.sql:/docker-entrypoint-initdb.d/init.sql:ro
- ./sql/my.cnf:/etc/mysql/my.cnf:ro
- ./logs/mysql-general.log:/var/log/mysql-general.log
- ./logs/mysql-error.log:/var/log/mysql-error.log
command: mysqld --general-log --general-log-file=/var/log/mysql-general.log --log-error=/var/log/mysql-error.log
healthcheck:
test: ['CMD', 'mysql', '--user=root', '--password=root', '--execute', 'show databases;']
interval: 5s
timeout: 2s
retries: 10
start_period: 10s
networks:
- sqlui
sqlui_server:
container_name: sqlui_server
image: nicholasdower/sqlui:latest
command: bash -c "cd /sqlui && make start-server-from-docker"
volumes:
- .:/sqlui
ports:
- "8080:8080"
depends_on:
sqlui_db:
condition: service_healthy
healthcheck:
test: curl --silent --fail localhost:8080/-/health || exit 1
interval: 2s
timeout: 1s
retries: 5
start_period: 10s
networks:
- sqlui
sqlui_hub:
container_name: sqlui_hub
image: selenium/hub:latest
environment:
GRID_BROWSER_TIMEOUT: 10000 # 10 seconds
GRID_NEW_SESSION_WAIT_TIMEOUT: 20000
GRID_NODE_POLLING: 300
GRID_TIMEOUT: 10000
ports:
- "4444:4444"
networks:
- sqlui
sqlui_node-chrome:
container_name: sqlui_node_chrome
image: selenium/node-chrome:latest
environment:
SE_EVENT_BUS_HOST: sqlui_hub
SE_EVENT_BUS_PUBLISH_PORT: 4442
SE_EVENT_BUS_SUBSCRIBE_PORT: 4443
SE_VNC_NO_PASSWORD: 1
volumes:
- /dev/shm:/dev/shm
networks:
- sqlui
networks:
sqlui:
name: 'sqlui'
external: true