-
-
Notifications
You must be signed in to change notification settings - Fork 222
/
docker-compose.yml
54 lines (54 loc) · 1.4 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
version: '3'
services:
mysql:
container_name: 'mysql_test'
image: 'mysql/mysql-server:8.0'
ports:
- '3307:3306'
command: '--default-authentication-plugin=mysql_native_password'
environment:
MYSQL_ROOT_PASSWORD: 'password'
MYSQL_ROOT_HOST: "%"
MYSQL_DATABASE: 'powergridtest'
MYSQL_USER: 'powergrid'
MYSQL_PASSWORD: 'password'
MYSQL_ALLOW_EMPTY_PASSWORD: 1
networks:
- sail
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-ppassword" ]
retries: 3
timeout: 5s
pgsql:
container_name: 'pgsql_test'
image: 'postgres:13'
ports:
- '5433:5432'
environment:
PGPASSWORD: 'password'
POSTGRES_DB: 'powergridtest'
POSTGRES_USER: 'postgres'
POSTGRES_PASSWORD: 'password'
networks:
- sail
healthcheck:
test: [ "CMD", "pg_isready", "-q", "-d", "powergridtest", "-U", "postgres" ]
retries: 3
timeout: 5s
sqlsrv:
container_name: 'sqlsrv_test'
image: 'mcr.microsoft.com/mssql/server:2017-latest'
ports:
- '1434:1433'
environment:
ACCEPT_EULA: 'Y'
SA_PASSWORD: 'yourStrong(!)Password'
networks:
- sail
healthcheck:
test: [ "CMD", "/opt/mssql-tools/bin/sqlcmd", "-S", "localhost", "-U", "sa", "-P", "yourStrong(!)Password", "-Q", "select 1" ]
retries: 3
timeout: 5s
networks:
sail:
driver: bridge