A package is now a set of immutable versions with declared grants and a default version that installations run unless they pin another. Adopting a version is what accepts its grants, replacing the per-extension lifecycle actions with version, pin and update-policy commands.
45 lines
1.2 KiB
YAML
45 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
|
|
- ./state:/archie/state
|
|
- ./catalogue:/archie/catalogue:ro
|
|
ports:
|
|
- "${ARCHIE_BIND:?}:8080"
|
|
networks: [internal]
|
|
depends_on:
|
|
archie-db:
|
|
condition: service_healthy
|
|
|
|
networks:
|
|
internal: {}
|