forked from p6spy/p6spy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
120 lines (111 loc) · 3.28 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
version: "3.0"
services:
oracle:
image: wnameless/oracle-xe-11g:latest
ports:
- "1522:1521"
- "8081:8080"
volumes:
- ./script/docker/oracle/create_user.sql:/docker-entrypoint-initdb.d/create_user.sql
- ./script/docker/oracle/healthcheck.sh:/tmp/healthcheck.sh
healthcheck:
test: /bin/bash /tmp/healthcheck.sh
interval: 2s
timeout: 10s
retries: 1800 # 2s*1800 = 3600s = 60min
# mssqlserver:
# image: microsoft/mssql-server-linux:latest
# environment:
# ACCEPT_EULA: Y
# SA_PASSWORD: P6spyTravis
# ports:
# - "1434:1433"
# healthcheck:
# test: /bin/sh -c '/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P P6spyTravis -Q "SELECT 12345" | grep -wq 12345'
# interval: 2s
# timeout: 10s
# retries: 1800 # 2s*1800 = 3600s = 60min
postgresql:
build: ./script/docker/postgres
environment:
POSTGRES_USER: travis
POSTGRES_PASSWORD: ''
POSTGRES_DB: p6spy
ports:
- "5432:5432"
healthcheck:
test: psql -lqt "dbname=p6spy user=travis password=''" | cut -d \| -f 1 | grep -qw p6spy
interval: 2s
timeout: 10s
retries: 1800 # 2s*1800 = 3600s = 60min
mysql:
image: mysql:5.7.18
environment:
MYSQL_USER: root
MYSQL_PASSWORD: root
MYSQL_DATABASE: p6spy
MYSQL_ALLOW_EMPTY_PASSWORD: 'true'
ports:
- "3306:3306"
volumes:
- ./script/docker/mysql/change_user_pwd.sql:/docker-entrypoint-initdb.d/change_user_pwd.sql
healthcheck:
test: /bin/sh -c "[ -d /var/lib/mysql/p6spy ]"
interval: 2s
timeout: 10s
retries: 1800 # 2s*1800 = 3600s = 60min
# mariadb:
# image: mariadb:10.1.23
# environment:
# MYSQL_USER: root
# MYSQL_PASSWORD: root
# MYSQL_DATABASE: p6spy
# MYSQL_ALLOW_EMPTY_PASSWORD: 'true'
# ports:
# - "3307:3306"
# volumes:
# - ./script/docker/mysql/change_user_pwd.sql:/docker-entrypoint-initdb.d/change_user_pwd.sql
# healthcheck:
# test: /bin/sh -c "[ -d /var/lib/mysql/p6spy ]"
# interval: 2s
# timeout: 10s
# retries: 1800 # 2s*1800 = 3600s = 60min
# percona:
# image: percona:5.7.17
# environment:
# MYSQL_USER: root
# MYSQL_PASSWORD: root
# MYSQL_DATABASE: p6spy
# MYSQL_ALLOW_EMPTY_PASSWORD: 'true'
# ports:
# - "3309:3306"
# volumes:
# - ./script/docker/mysql/change_user_pwd.sql:/docker-entrypoint-initdb.d/change_user_pwd.sql
# healthcheck:
# test: /bin/sh -c "[ -d /var/lib/mysql/p6spy ]"
# interval: 2s
# timeout: 10s
# retries: 1800 # 2s*1800 = 3600s = 60min
firebird:
image: jacobalberty/firebird:2.5-sc
environment:
ISC_PASSWORD: masterkey
FIREBIRD_USER: travis
FIREBIRD_PASSWORD: travis
FIREBIRD_DATABASE: p6spy.gdb
ports:
- "3050:3050"
healthcheck:
test: /bin/sh -c "[ -f /databases/p6spy.gdb ]"
interval: 2s
timeout: 10s
retries: 1800 # 2s*1800 = 3600s = 60min
# db2:
# image: ibmcom/db2express-c:10.5.0.5-3.10.0
# environment:
# DB2INST1_PASSWORD: travis
# LICENSE: accept
# ports:
# - "3051:3050"
# - "50000:50000"
# command: ["db2start"]