2024-11-16 17:36:57 +00:00
|
|
|
services:
|
|
|
|
baby-buddy:
|
|
|
|
image: lscr.io/linuxserver/babybuddy:latest
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
- PUID={{ docker_user.id }}
|
|
|
|
- PGID={{ docker_user.id }}
|
|
|
|
- TZ={{ timezone }}
|
|
|
|
- DATABASE_URL=postgres://baby-buddy:baby-buddy@db/baby-buddy
|
|
|
|
- ALLOWED_HOSTS=baby-buddy.jakehoward.tech
|
|
|
|
- CSRF_COOKIE_SECURE=True
|
|
|
|
- SECRET_KEY={{ vault_secret_key }}
|
|
|
|
- SECURE_PROXY_SSL_HEADER=True
|
|
|
|
- SESSION_COOKIE_SECURE=True
|
|
|
|
labels:
|
|
|
|
- traefik.enable=true
|
|
|
|
- traefik.http.routers.baby-buddy.rule=Host(`baby-buddy.jakehoward.tech`)
|
|
|
|
- traefik.http.routers.baby-buddy.middlewares=tailscale-only@file
|
|
|
|
volumes:
|
|
|
|
- "{{ app_data_dir }}/baby-buddy:/config"
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
- traefik
|
|
|
|
|
|
|
|
db:
|
2024-11-16 18:00:24 +00:00
|
|
|
image: postgres:17-alpine
|
2024-11-16 17:36:57 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- /mnt/speed/dbs/postgres/baby-buddy:/var/lib/postgresql/data
|
|
|
|
environment:
|
|
|
|
- POSTGRES_PASSWORD=baby-buddy
|
|
|
|
- POSTGRES_USER=baby-buddy
|
|
|
|
|
|
|
|
networks:
|
|
|
|
traefik:
|
|
|
|
external: true
|