Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
140 lines (132 loc) · 3.38 KB
/
Copy pathdocker-compose.yml
File metadata and controls
140 lines (132 loc) · 3.38 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
services:
mongo:
image: mongo:9.0
expose:
- 27017
ports:
- "27017:27017"
restart: always
security_opt:
# blocks the `rseq` syscall so tcmalloc falls back to per-thread caches, working around
# the mongo 8.x startup failure on linux kernel 6.19+ (https://jira.mongodb.org/browse/SERVER-121912)
- seccomp:./docker/mongo-seccomp.json
healthcheck:
test: /usr/bin/mongosh --eval 'process.exit(+!(db.runCommand("ping").ok === 1))'
mysql9:
image: mysql:9.0-oracle
restart: unless-stopped
ports:
- "3308:3306"
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 1
command: [
"mysqld",
"--innodb_file_per_table=0",
"--innodb_doublewrite=0",
"--skip-name-resolve"
]
volumes:
- mysql9:/var/lib/mysql
healthcheck:
test: /usr/bin/mysql --protocol=TCP -e 'select 1'
start_period: 30s
mariadb:
image: mariadb:13
ports:
- "3309:3306"
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 1
volumes:
- mariadb:/var/lib/mysql
healthcheck:
test: /usr/bin/mariadb --protocol=TCP -e 'select 1'
postgre:
image: pgvector/pgvector:pg16
ports:
- "5432:5432"
volumes:
- postgre:/var/lib/postgresql/data
environment:
POSTGRES_HOST_AUTH_METHOD: trust
healthcheck:
test: /usr/bin/pg_isready -h 'localhost'
postgis:
image: imresamu/postgis:16-3.4
ports:
- "5433:5432"
volumes:
- postgis:/var/lib/postgresql/data
environment:
POSTGRES_HOST_AUTH_METHOD: trust
healthcheck:
test: /usr/bin/pg_isready -h 'localhost'
cockroachdb:
image: cockroachdb/cockroach:latest-v24.3
restart: unless-stopped
ports:
- "26257:26257"
- "8080:8080"
volumes:
- cockroachdb:/cockroach/cockroach-data
command: start-single-node --insecure
healthcheck:
test: cockroach sql --insecure -e 'select 1'
mssql:
image: mcr.microsoft.com/mssql/server:2025-CU8-ubuntu-24.04
platform: linux/amd64
restart: always
ports:
- '1433:1433'
cap_add:
- SYS_PTRACE
environment:
MSSQL_SA_PASSWORD: Root.Root
MSSQL_TELEMETRY_ENABLED: 0
ACCEPT_EULA: 1
healthcheck:
test: /opt/mssql-tools18/bin/sqlcmd -b -C -S tcp:localhost -U sa -P 'Root.Root' -Q 'select 1'
start_period: 60s
interval: 5s
timeout: 10s
retries: 24
oracledb:
image: container-registry.oracle.com/database/free:latest-lite
ports:
- '1521:1521'
environment:
- ORACLE_ALLOW_REMOTE=true
- ORACLE_PWD=oracle123
- ORACLE_MEM_TARGET=2G
healthcheck:
test: bash -c "echo 'select 1 from dual;' | sqlplus -L -S pdbadmin/oracle123@//localhost:1521/FREEPDB1"
start_period: 300s
start_interval: 5s
volumes:
- oracledb:/opt/oracle/data
- ./docker/oracle-init.sql:/opt/oracle/scripts/startup/oracle-init.sql
- ./docker/oracle-startup.sh:/opt/oracle/scripts/startup/oracle-startup.sh
volumes:
mysql9:
driver_opts:
type: tmpfs
device: tmpfs
mariadb:
driver_opts:
type: tmpfs
device: tmpfs
postgre:
driver_opts:
type: tmpfs
device: tmpfs
postgis:
driver_opts:
type: tmpfs
device: tmpfs
cockroachdb:
driver_opts:
type: tmpfs
device: tmpfs
oracledb:
driver_opts:
type: tmpfs
device: tmpfs