Filetype change on docker-compose
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
# Spendr: personal finance dashboard. ~/docker/spendr/compose.yaml
|
||||
# Uses the existing Traefik (external network "proxy") and Authentik forward auth at auth.dv3.app.
|
||||
|
||||
services:
|
||||
spendr:
|
||||
build: ./app
|
||||
container_name: spendr
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
DATABASE_URL: postgresql+psycopg://spendr:${SPENDR_DB_PASSWORD:?set SPENDR_DB_PASSWORD in .env}@spendr-db:5432/spendr
|
||||
TZ: ${TZ:-Europe/Amsterdam}
|
||||
PUBLIC_URL: https://${SPENDR_HOST:-spendr.dv3.app}
|
||||
SIGN_OUT_URL: https://auth.dv3.app/outpost.goauthentik.io/sign_out
|
||||
# Enable Banking (optional automatic ING/Revolut sync, see README)
|
||||
EB_APP_ID: ${EB_APP_ID:-}
|
||||
EB_KEY_PATH: /run/secrets/enablebanking.pem
|
||||
EB_SYNC_HOURS: ${EB_SYNC_HOURS:-6}
|
||||
# Prices
|
||||
COINGECKO_API_KEY: ${COINGECKO_API_KEY:-}
|
||||
PRICE_REFRESH_MINUTES: ${PRICE_REFRESH_MINUTES:-60}
|
||||
volumes:
|
||||
# Folder (not a single file) holding enablebanking.pem. With Komodo, point this at a host folder
|
||||
# outside the cloned repo, e.g. SECRETS_DIR=/etc/komodo/secrets/spendr
|
||||
- ${SECRETS_DIR:-./secrets}:/run/secrets:ro
|
||||
depends_on:
|
||||
spendr-db:
|
||||
condition: service_healthy
|
||||
networks: [proxy, internal]
|
||||
labels:
|
||||
traefik.enable: "true"
|
||||
traefik.docker.network: proxy
|
||||
traefik.http.routers.spendr.rule: Host(`${SPENDR_HOST:-spendr.dv3.app}`)
|
||||
traefik.http.routers.spendr.entrypoints: websecure
|
||||
traefik.http.routers.spendr.tls.certresolver: letsencrypt
|
||||
traefik.http.routers.spendr.middlewares: secure-headers@docker,authentik@docker
|
||||
traefik.http.services.spendr.loadbalancer.server.port: "8000"
|
||||
|
||||
spendr-db:
|
||||
image: postgres:16-alpine
|
||||
container_name: spendr-db
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_USER: spendr
|
||||
POSTGRES_DB: spendr
|
||||
POSTGRES_PASSWORD: ${SPENDR_DB_PASSWORD}
|
||||
volumes:
|
||||
- spendr-db:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -d spendr -U spendr"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
networks: [internal]
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
||||
internal:
|
||||
|
||||
volumes:
|
||||
spendr-db:
|
||||
name: ${PG_VOLUME:-spendr-db}
|
||||
Reference in New Issue
Block a user