-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (42 loc) · 1.01 KB
/
docker-compose.yml
File metadata and controls
46 lines (42 loc) · 1.01 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
version: '3.8'
services:
postgres:
image: postgres:16
container_name: postgres_test
ports:
- "5432:5432"
environment:
POSTGRES_USER: testuser
POSTGRES_PASSWORD: testpass
POSTGRES_DB: testdb
volumes:
- pgdata:/var/lib/postgresql/data
- ./init-postgres.sql:/docker-entrypoint-initdb.d/init.sql
mssql:
image: mcr.microsoft.com/mssql/server:2022-latest
container_name: mssql_test
ports:
- "1433:1433"
environment:
ACCEPT_EULA: "Y"
SA_PASSWORD: "YourStrong(!)Password"
volumes:
- mssql_data:/var/opt/mssql
- ./init-mssql.sql:/init-mssql.sql
mysql:
image: mysql:8.0
container_name: mysql_test
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: rootpass
MYSQL_DATABASE: testdb
MYSQL_USER: testuser
MYSQL_PASSWORD: testpass
volumes:
- mysql_data:/var/lib/mysql
- ./init-mysql.sql:/docker-entrypoint-initdb.d/init.sql
volumes:
pgdata:
mssql_data:
mysql_data: