Files
archie/deployments/archie/compose.yml
T

77 lines
2.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"]
environment:
# The age secret engine resolves secret:// references from this file with
# this identity. Both are paths the state mount already holds, so no key
# is in this file.
AGE_FILE: /archie/state/age/secrets.age
AGE_IDENTITY: /archie/state/age/identity.txt
# 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
networks: [internal]
depends_on:
archie-db:
condition: service_healthy
archie-frontend:
image: ${ARCHIE_FRONTEND_IMAGE:-ghcr.io/archie-platform/archie-frontend:v0.1.0}
restart: unless-stopped
read_only: true
tmpfs:
- /tmp
cap_drop: [ALL]
security_opt:
- no-new-privileges:true
networks: [internal]
# The ingress: one host, routed by path to the backend or the dashboard.
edge:
image: nginxinc/nginx-unprivileged:1.29-alpine
restart: unless-stopped
read_only: true
tmpfs:
- /tmp
cap_drop: [ALL]
security_opt:
- no-new-privileges:true
volumes:
- ./edge.conf:/etc/nginx/conf.d/default.conf:ro
ports:
- "${ARCHIE_BIND:?}:8080"
networks: [internal]
depends_on: [archie, archie-frontend]
networks:
internal: {}