-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
56 lines (51 loc) · 1.73 KB
/
Copy pathcompose.yaml
File metadata and controls
56 lines (51 loc) · 1.73 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
name: core
# Shared cross-bot identity / presence / language store.
# core_net is created here and joined by the bot stacks (vido, searchy, quoto,
# branchy, makeitMD) as an external network so they can reach core-postgres:5432.
# The DB port is NOT published to the host.
networks:
core_net:
name: core_net
driver: bridge
volumes:
core_pgdata:
services:
core-postgres:
image: postgres:17-alpine
container_name: core-postgres
environment:
POSTGRES_USER: ${CORE_POSTGRES_USER:-core}
POSTGRES_PASSWORD: ${CORE_POSTGRES_PASSWORD:?set CORE_POSTGRES_PASSWORD in .env}
POSTGRES_DB: ${CORE_POSTGRES_DB:-core}
volumes:
- core_pgdata:/var/lib/postgresql/data
networks: [core_net]
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${CORE_POSTGRES_USER:-core} -d ${CORE_POSTGRES_DB:-core}"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
core-migrate:
image: postgres:17-alpine
container_name: core-migrate
depends_on:
core-postgres:
condition: service_healthy
environment:
PGHOST: core-postgres
PGPORT: "5432"
PGUSER: ${CORE_POSTGRES_USER:-core}
PGDATABASE: ${CORE_POSTGRES_DB:-core}
CORE_POSTGRES_PASSWORD: ${CORE_POSTGRES_PASSWORD:?set CORE_POSTGRES_PASSWORD in .env}
VIDO_CORE_PASSWORD: ${VIDO_CORE_PASSWORD:-}
SEARCHY_CORE_PASSWORD: ${SEARCHY_CORE_PASSWORD:-}
QUOTO_CORE_PASSWORD: ${QUOTO_CORE_PASSWORD:-}
BRANCHY_CORE_PASSWORD: ${BRANCHY_CORE_PASSWORD:-}
MAKEITMD_CORE_PASSWORD: ${MAKEITMD_CORE_PASSWORD:-}
volumes:
- ./migrations:/migrations:ro
- ./bin/apply.sh:/apply.sh:ro
networks: [core_net]
entrypoint: ["/bin/sh", "/apply.sh"]
restart: "no"