Files
archie/deployments/archie/compose.yml
T
sam 93c9eb51f3 fix(deploy): let the staging container confine extensions in user and network namespaces
Docker's default seccomp profile refuses the clone the extension host
confines with, so a connector that declares egress couldn't start. The profile
is Docker's default plus that clone, limited to the user and network
namespace flags.
2026-11-15 22:21:03 +11:00

43 lines
1.2 KiB
YAML

name: archie
services:
archie-db:
image: postgres:18-alpine
restart: unless-stopped
environment:
POSTGRES_DB: archie
POSTGRES_USER: archie_owner
POSTGRES_PASSWORD: ${ARCHIE_OWNER_PASSWORD:?}
ARCHIE_APP_PASSWORD: ${ARCHIE_APP_PASSWORD:?}
volumes:
- ./postgres:/var/lib/postgresql
- ./initdb:/docker-entrypoint-initdb.d:ro
networks: [internal]
healthcheck:
test: ["CMD-SHELL", "pg_isready -U archie_owner -d archie"]
interval: 5s
timeout: 3s
retries: 20
archie:
image: gcr.io/distroless/static-debian12:nonroot
restart: unless-stopped
command: ["/archie/archie", "-config", "/archie/config.toml"]
# Docker's default seccomp profile plus the one clone the extension host
# needs to confine an extension in its own user and network namespace.
security_opt:
- seccomp=./seccomp.json
volumes:
- ./bin/archie:/archie/archie:ro
- ./config.toml:/archie/config.toml:ro
- ./extensions:/archie/extensions:ro
ports:
- "${ARCHIE_BIND:?}:8080"
networks: [internal]
depends_on:
archie-db:
condition: service_healthy
networks:
internal: {}