-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
80 lines (78 loc) · 2.91 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
68
69
70
71
72
73
74
75
76
77
78
79
80
name: netflixdb
services:
#----------------------------------------------------------------------------
# MySQL Container
# https://hub.docker.com/_/mysql
# Commands:
# mysql -u test -p netflixdb
#----------------------------------------------------------------------------
mysql:
image: mysql:latest
environment:
MYSQL_USER: mysql
MYSQL_PASSWORD: mysql
MYSQL_ROOT_PASSWORD: Test123
MYSQL_DATABASE: netflixdb
ports:
- "3306:3306"
# volumes:
# - ./build/artifacts/netflixdb-mysql.sql:/docker-entrypoint-initdb.d/netflixdb-mysql.sql
#----------------------------------------------------------------------------
# Oracle Container
# https://container-registry.oracle.com/ords/ocr/ba/database/express
# https://hub.docker.com/r/gvenzl/oracle-free (Apple M chips)
# Commands:
# sqlplus -S / as sysdba @ /container-entrypoint-initdb.d/create_database.sql
#----------------------------------------------------------------------------
oracle:
image: gvenzl/oracle-free:23-slim-faststart
environment:
ORACLE_PASSWORD: Test123
APP_USER: netflixdb
APP_USER_PASSWORD: netflixdb
ports:
- "1521:1521"
healthcheck:
test: ["CMD", "healthcheck.sh"]
interval: 10s
timeout: 5s
retries: 10
start_period: 5s
# volumes:
# - ./build/artifacts/netflixdb-oracle.sql:/docker-entrypoint-initdb.d/netflixdb-oracle.sql
#----------------------------------------------------------------------------
# PostgreSQL Container
# https://hub.docker.com/_/postgres
# Commands:
# psql -U postgres postgres
#----------------------------------------------------------------------------
postgres:
image: postgres:15.3-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: netflixdb
ports:
- "5432:5432"
# volumes:
# - ./build/artifacts/netflixdb-postgresql.sql:/docker-entrypoint-initdb.d/netflixdb-postgresql.sql
#----------------------------------------------------------------------------
# SQL Server Container
# https://hub.docker.com/_/microsoft-mssql-server
# Commands:
# /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P $MSSQL_SA_PASSWORD -d master -i /docker-entrypoint-initdb.d/create_database.sql
# /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P $MSSQL_SA_PASSWORD -d Chinook
#----------------------------------------------------------------------------
sqlserver:
image: mcr.microsoft.com/mssql/server:2022-latest
platform: linux/amd64
environment:
ACCEPT_EULA: Y
MSSQL_SA_PASSWORD: Test123!
MSSQL_PID: Developer
ports:
- "1433:1433"
# volumes:
# - ./build/artifacts/netflixdb-mssql.sql:/docker-entrypoint-initdb.d/netflixdb-mssql.sql
# command:
# - /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P $MSSQL_SA_PASSWORD -d master -i /docker-entrypoint-initdb.d/netflixdb-mssql.sql