fediverse-auth/docker-compose.yml

31 lines
748 B
YAML

services:
fedi-auth:
image: sc07/fediverse-auth
build: .
ports:
- "3000:3000"
environment:
- DATABASE_URL=postgres://postgres@postgres:5432/fediauth
- OIDC_JWK_KEYS_FILE=/run/secrets/oidc_jwk_keys
- OIDC_COOKIE_KEYS_FILE=/run/secrets/oidc_cookie_keys
env_file:
- .env.local
secrets:
- oidc_jwk_keys
- oidc_cookie_keys
postgres:
restart: always
image: postgres:14-alpine
healthcheck:
test: ['CMD', 'pg_isready', '-U', 'postgres']
volumes:
- ./data/postgres:/var/lib/postgresql/data
environment:
- 'POSTGRES_HOST_AUTH_METHOD=trust'
secrets:
oidc_jwk_keys:
file: ./secrets/jwks.json
oidc_cookie_keys:
file: ./secrets/cookies.json