-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (53 loc) · 1.36 KB
/
docker-compose.yml
File metadata and controls
56 lines (53 loc) · 1.36 KB
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
volumes:
mysql_data:
postgres_data:
sqlserver_data:
services:
postgres:
container_name: data_migration_pg
image: postgres:18
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: data_migration_test
TZ: UTC
ports:
- 15435:5432
volumes:
- postgres_data:/var/lib/postgresql
mysql:
container_name: data_migration_mysql
image: mysql:8
environment:
MYSQL_DATABASE: data_migration_test
MYSQL_USER: mysql
MYSQL_PASSWORD: mysql
MYSQL_ROOT_PASSWORD: mysql
volumes:
- mysql_data:/var/lib/mysql
ports:
- 13306:3306
healthcheck:
test: --health-cmd="mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries 5
interval: 10s
retries: 10
start_period: 10s
timeout: 3s
sqlserver:
container_name: data_migration_mssql
image: mcr.microsoft.com/mssql/server:2022-latest
environment:
ACCEPT_EULA: Y
MSSQL_SA_PASSWORD: StrongPassword!
MSSQL_PID: Developer
ports:
- 11433:1433
volumes:
- sqlserver_data:/var/opt/mssql
restart: always
healthcheck:
test: ["CMD-SHELL", "/opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P 'StrongPassword!' -C -Q 'SELECT 1' || exit 1"]
interval: 10s
retries: 10
start_period: 10s
timeout: 3s