-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
95 lines (91 loc) · 2.37 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
version: '3'
services:
mssql:
image: microsoft/mssql-server-linux:latest
ports:
- '28001:1433'
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=S0meVeryHardPassword
healthcheck:
test: /opt/mssql-tools/bin/sqlcmd -S mssql -U sa -P 'S0meVeryHardPassword' -Q 'SELECT 1'
waitmssql:
image: microsoft/mssql-server-linux:latest
links:
- mssql
depends_on:
- mssql
entrypoint:
- bash
- -c
- 'until /opt/mssql-tools/bin/sqlcmd -S mssql -U sa -P S0meVeryHardPassword -d master -Q "CREATE DATABASE knex_test"; do sleep 5; done'
mysql:
image: mysql
command: --default-authentication-plugin=mysql_native_password
ports:
- '28002:3306'
environment:
- MYSQL_ROOT_PASSWORD=testrootpassword
- MYSQL_DATABASE=knex_test
- MYSQL_USER=testuser
- MYSQL_PASSWORD=testpassword
healthcheck:
test: /usr/bin/mysql -hlocalhost -utestuser -ptestpassword -e 'SELECT 1'
interval: 30s
timeout: 5s
retries: 3
restart: always
waitmysql:
image: mysql
links:
- mysql
depends_on:
- mysql
entrypoint:
- bash
- -c
- 'until /usr/bin/mysql -hmysql -utestuser -ptestpassword -e "SELECT 1"; do sleep 5; done'
mariadb:
image: mariadb
command: --default-authentication-plugin=mysql_native_password
ports:
- '28003:3306'
environment:
- MYSQL_ROOT_PASSWORD=testrootpassword
- MYSQL_DATABASE=knex_test
- MYSQL_USER=testuser
- MYSQL_PASSWORD=testpassword
healthcheck:
test: /usr/bin/mysql -hlocalhost -utestuser -ptestpassword -e 'SELECT 1'
interval: 30s
timeout: 5s
retries: 3
restart: always
waitmariadb:
image: mariadb
links:
- mariadb
depends_on:
- mariadb
entrypoint:
- bash
- -c
- 'until /usr/bin/mysql -hmariadb -utestuser -ptestpassword -e "SELECT 1"; do sleep 5; done'
postgres:
image: postgres:alpine
ports:
- '28004:5432'
environment:
- POSTGRES_USER=testuser
- POSTGRES_PASSWORD=testpassword
- POSTGRES_DB=knex_test
waitpostgres:
image: postgres:alpine
links:
- postgres
depends_on:
- postgres
entrypoint:
- bash
- -c
- 'until /usr/local/bin/psql postgres://testuser:testpassword@postgres/knex_test -c "SELECT 1"; do sleep 5; done'