-
Notifications
You must be signed in to change notification settings - Fork 22
/
docker-compose.yml
60 lines (55 loc) · 1.79 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
version: "3.7"
services:
# Port numbers (normal port number + 40000):
# - mssql 41433
# - mysql 43306
# - postgres 45432
# - oracle 41521
mssql:
# See https://hub.docker.com/_/microsoft-mssql-server
image: mcr.microsoft.com/mssql/server:2017-latest-ubuntu
container_name: schema-test-mssql
ports:
- 127.0.0.1:41433:1433
volumes:
# Override the normal entry point, to call our own db-init.sh
- ./docker-entrypoint-mssql.sh:/entrypoint.sh:ro
# Script to do init after startup is complete.
- ./docker-db-init-mssql.sh:/db-init.sh:ro
# SQL script executed at startup.
- ./docker-db-init-mssql.sql:/init.sql:ro
command: /bin/bash /entrypoint.sh
environment:
ACCEPT_EULA: Y
MSSQL_PID: Developer
SA_PASSWORD: 7kRZ4mUsSD4XedMq
mysql:
# See https://hub.docker.com/_/mysql
image: mysql:latest
container_name: schema-test-mysql
command: --default-authentication-plugin=mysql_native_password
ports:
- 127.0.0.1:43306:3306
environment:
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
MYSQL_DATABASE: test_db
MYSQL_USER: test_user
MYSQL_PASSWORD: password-123
oracle:
# See https://www.petefreitag.com/item/886.cfm
image: oracle/database:18.4.0-xe
container_name: schema-test-oracle
ports:
- 127.0.0.1:41521:1521
volumes:
# SQL script executed after initial setup (not on every startup).
- ./docker-db-init-oracle.sql:/opt/oracle/scripts/setup/init.sql:ro
# - ./docker-db-init-oracle.sql:/opt/oracle/scripts/startup/init.sql:ro
postgres:
# See https://hub.docker.com/_/postgres
image: postgres:latest
container_name: schema-test-postgres
ports:
- 127.0.0.1:45432:5432
environment:
POSTGRES_HOST_AUTH_METHOD: trust