-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
67 lines (62 loc) · 1.53 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
services:
wait_for_healthcecks:
image: busybox
depends_on:
mysql:
condition: service_healthy
postgres:
condition: service_healthy
mysql:
image: mysql:8.0.31
ports:
- 3306:3306
command: --default-authentication-plugin=mysql_native_password
environment:
- MYSQL_ROOT_PASSWORD=root
volumes:
- mysql:/var/lib/mysql:delegated
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 20s
retries: 10
sqlserver:
image: mcr.microsoft.com/mssql/server:2022-CU15-ubuntu-22.04
platform: linux/amd64
ports:
- 1433:1433
environment:
- ACCEPT_EULA=1
- SA_PASSWORD=P1ssw0rd
volumes:
- sqlserver:/var/opt/mssql:delegated
cap_add:
- SYS_PTRACE
healthcheck:
test: /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P "$${SA_PASSWORD}" -Q "SELECT 1" -b -o /dev/null
interval: 10s
timeout: 5s
retries: 5
postgres:
image: postgres:15
ports:
- 5432:5432
environment:
- POSTGRES_PASSWORD=root
volumes:
- postgres:/var/lib/postgresql/data:delegated
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
azurite:
image: mcr.microsoft.com/azure-storage/azurite
command: azurite --loose -l /data --blobHost 0.0.0.0 --queueHost 0.0.0.0 --tableHost 0.0.0.0
ports:
- 10000:10000
- 10001:10001
- 10002:10002
volumes:
mysql:
sqlserver:
postgres: