Something went wrong. Try again.
gotta store my records
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748services: server: build: . image: crate:latest ports: - "8080:8080" environment: # Persistent session store (sessions survive restarts). - DATABASE_URL=postgres://atrecord:atrecord@db:5432/atrecord # Stable session signing secret. CHANGE THIS for any real deployment. - SECRET_KEY_BASE=dev-only-change-me-to-a-long-random-string # At-rest encryption key for stored tokens (base64, 32 bytes; generate # with `openssl rand -base64 32`). CHANGE THIS for any real deployment. - STORE_KEY=${STORE_KEY:-ZGV2LW9ubHktMzItYnl0ZS1zdG9yZS1rZXktISEhISE=} # Discogs app credential (from .env, gitignored). Empty = search still # works, just without cover thumbnails. - DISCOGS_CONSUMER_KEY=${DISCOGS_CONSUMER_KEY:-} - DISCOGS_CONSUMER_SECRET=${DISCOGS_CONSUMER_SECRET:-} # Public origin (drives the confidential OAuth client). Set in real deploys. # - BASE_URL=https://your.domain # - OAUTH_CLIENT_JWK={"kty":"EC",...} # - SLINGSHOT_URL=https://slingshot.microcosm.blue # - PORT=8080 depends_on: db: condition: service_healthy # The image's own HEALTHCHECK governs; overriding it here is a second # definition that drifts. restart: unless-stopped
db: image: postgres:16-alpine environment: - POSTGRES_USER=atrecord - POSTGRES_PASSWORD=atrecord - POSTGRES_DB=atrecord volumes: - db-data:/var/lib/postgresql/data restart: unless-stopped healthcheck: test: ["CMD-SHELL", "pg_isready -U atrecord"] interval: 10s timeout: 3s retries: 5
volumes: db-data: