-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.databases.yml
More file actions
105 lines (100 loc) · 2.53 KB
/
Copy pathdocker-compose.databases.yml
File metadata and controls
105 lines (100 loc) · 2.53 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
services:
postgres:
image: postgres:17
container_name: dora-postgres
restart: unless-stopped
environment:
POSTGRES_PASSWORD: rootpass
POSTGRES_DB: dora
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d dora"]
interval: 5s
timeout: 5s
retries: 10
start_period: 20s
mysql:
image: mysql:8.4
container_name: dora-mysql
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: rootpass
MYSQL_ROOT_HOST: "%"
MYSQL_DATABASE: dora
ports:
- "3307:3306"
volumes:
- mysql-data:/var/lib/mysql
healthcheck:
test: ["CMD-SHELL", "mysqladmin ping -uroot -prootpass"]
interval: 5s
timeout: 5s
retries: 10
start_period: 20s
mariadb:
image: mariadb:11.4
container_name: dora-mariadb
restart: unless-stopped
environment:
MARIADB_ROOT_PASSWORD: rootpass
MARIADB_ROOT_HOST: "%"
MARIADB_DATABASE: dora
ports:
- "3306:3306"
volumes:
- mariadb-data:/var/lib/mysql
healthcheck:
test: ["CMD-SHELL", "mariadb-admin ping -uroot -prootpass"]
interval: 5s
timeout: 5s
retries: 10
start_period: 20s
cockroach:
image: cockroachdb/cockroach:v25.1.1
container_name: dora-cockroach
restart: unless-stopped
command:
- start-single-node
- --insecure
# CockroachDB v24+ rejects an explicit 0.0.0.0 host; ":port" binds all interfaces.
- --listen-addr=:26257
- --http-addr=:8080
- --advertise-addr=cockroach:26257
- --store=/cockroach-data
ports:
- "26257:26257"
- "8080:8080"
volumes:
- cockroach-data:/cockroach-data
healthcheck:
test: ["CMD-SHELL", "cockroach sql --insecure --host=127.0.0.1:26257 -e 'SELECT 1'"]
interval: 10s
timeout: 10s
retries: 10
start_period: 30s
libsql:
image: ghcr.io/tursodatabase/libsql-server:latest
container_name: dora-libsql
restart: unless-stopped
environment:
# Local sqld in primary mode; no auth token required for local dev.
SQLD_NODE: primary
ports:
- "8081:8080"
volumes:
- libsql-data:/var/lib/sqld
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:8080/health || exit 1"]
interval: 10s
timeout: 5s
retries: 10
start_period: 20s
volumes:
postgres-data:
mysql-data:
mariadb-data:
cockroach-data:
libsql-data: