-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (53 loc) · 1.49 KB
/
docker-compose.yml
File metadata and controls
56 lines (53 loc) · 1.49 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
# Default: single-node, embedded sled storage
# docker compose up
#
# PostgreSQL mode (pg-sync, WAL replication):
# docker compose --profile pg up
services:
meridian:
build:
context: .
args:
FEATURES: ${MERIDIAN_FEATURES:-}
ports:
- "3000:3000"
volumes:
- meridian_data:/data
environment:
# Dev default key — override in production via .env or environment variable.
# Generate a production key: openssl rand -hex 32
MERIDIAN_SIGNING_KEY: ${MERIDIAN_SIGNING_KEY:-4242424242424242424242424242424242424242424242424242424242424242}
MERIDIAN_NODE_ID: ${MERIDIAN_NODE_ID:-1}
DATABASE_URL: ${DATABASE_URL:-}
MERIDIAN_WAL_CONNSTR: ${MERIDIAN_WAL_CONNSTR:-}
MERIDIAN_WAL_SLOT: ${MERIDIAN_WAL_SLOT:-meridian_wal}
MERIDIAN_WAL_PUB: ${MERIDIAN_WAL_PUB:-meridian_pub}
env_file:
- path: .env
required: false
depends_on:
postgres:
condition: service_healthy
required: false
restart: unless-stopped
postgres:
profiles: [pg]
image: postgres:17-alpine
command: postgres -c wal_level=logical
environment:
POSTGRES_USER: meridian
POSTGRES_PASSWORD: meridian
POSTGRES_DB: meridian
ports:
- "5432:5432"
volumes:
- pg_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U meridian"]
interval: 5s
timeout: 5s
retries: 10
restart: unless-stopped
volumes:
meridian_data:
pg_data: