forked from sqlcomponents/sqlcomponents
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (70 loc) · 1.87 KB
/
docker-compose.yml
File metadata and controls
72 lines (70 loc) · 1.87 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
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
version: '3.1'
services:
postgresdb:
image: postgres:16
container_name: postgresdb
environment:
POSTGRES_DB: moviedb
POSTGRES_USER: moviedb
POSTGRES_PASSWORD: moviedb
ports:
- "5432:5432"
volumes:
- ${PWD}/init.db/postgres:/docker-entrypoint-initdb.d
# h2db:
# image: oscarfonts/h2:latest
# container_name: h2db
# environment:
# - H2_DATABASE_NAME=moviedb
# - H2_USER=moviedb
# - H2_PASSWORD=moviedb
# ports:
# - "1521:1521"
# volumes:
# - ./init.db/h2:/docker-entrypoint-initdb.d
# mariadb:
# image: mariadb:10.5
# environment:
# MYSQL_ROOT_PASSWORD: moviedb
# MYSQL_DATABASE: moviedb
# MYSQL_USER: moviedb
# MYSQL_PASSWORD: moviedb
# ports:
# - "3306:3306"
# volumes:
# - ${PWD}/init.db/mariadb:/docker-entrypoint-initdb.d
#
# mysqldb:
# image: mysql:8.0
# environment:
# MYSQL_DATABASE: moviedb
# MYSQL_USER: moviedb
# MYSQL_PASSWORD: moviedb
# MYSQL_ROOT_PASSWORD: moviedb
# ports:
# - '3308:3306'
# volumes:
# - ${PWD}/init.db/mysql:/docker-entrypoint-initdb.d
#
# sqlserverdb:
# image: boxfuse/flyway
# command: -c 'sleep 30; flyway migrate -user=sa -password=$${SA_PASSWORD} -url="jdbc:sqlserver://sqlserver:1433;databaseName=$${DATABASE}"'
# entrypoint: sh
# volumes:
# - ${PWD}/init.db/sqlserver:/flyway/sql
# environment:
# SA_PASSWORD: P@ssw0rd
# DATABASE: moviedb
# depends_on:
# - sqlserver
#
# sqlserver:
# image: mcr.microsoft.com/mssql/server:2019-latest
# ports:
# - 5433:1433
# entrypoint: sh
# command: -c '/opt/mssql/bin/sqlservr & /opt/mssql-tools/bin/sqlcmd -l 30 -S localhost -U sa -P $${SA_PASSWORD} -d tempdb -q "CREATE DATABASE $${DATABASE}"; wait'
# environment:
# ACCEPT_EULA: 'Y'
# SA_PASSWORD: P@ssw0rd
# DATABASE: moviedb