-
Notifications
You must be signed in to change notification settings - Fork 26
/
compose.yaml
47 lines (44 loc) · 1.29 KB
/
compose.yaml
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
services:
mysql:
image: mysql:9.0
restart: always
environment:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: ${ARPROXY_DB_DATABASE}
MYSQL_USER: ${ARPROXY_DB_USER}
MYSQL_PASSWORD: ${ARPROXY_DB_PASSWORD}
volumes:
- ./db/mysql/my.cnf:/etc/mysql/conf.d/my.cnf
- ./db/mysql/data:/var/lib/mysql
ports:
- "23306:3306"
postgres:
image: postgres:17
restart: always
environment:
POSTGRES_DB: ${ARPROXY_DB_DATABASE}
POSTGRES_USER: ${ARPROXY_DB_USER}
POSTGRES_PASSWORD: ${ARPROXY_DB_PASSWORD}
ports:
- "25432:5432"
sqlserver:
image: mcr.microsoft.com/mssql/server:2022-latest
restart: always
environment:
ACCEPT_EULA: Y
MSSQL_SA_PASSWORD: R00tPassword12!
ports:
- "21433:1433"
healthcheck:
test: ["CMD-SHELL", "/opt/mssql-tools18/bin/sqlcmd -C -S localhost -U sa -P R00tPassword12! -Q 'SELECT 1' || exit 1"]
interval: 5s
retries: 10
start_period: 10s
sqlserver-init:
image: mcr.microsoft.com/mssql/server:2022-latest
volumes:
- ./db/sqlserver/init.sql:/init.sql
command: /opt/mssql-tools18/bin/sqlcmd -C -S sqlserver -U sa -P R00tPassword12! -d master -i /init.sql
depends_on:
sqlserver:
condition: service_healthy