Jafner.net/homelab/fighter/config/vandam/docker-compose.yml
Joey Hafner edf5173f5e
Pin images to latest, remove obsolete 'version' top-level compose element
Pinning to digests was resulting in many stacks failing to come online with "manifest unknown" errors. Will look further into this.
2024-07-22 10:26:29 -07:00

45 lines
894 B
YAML

services:
vandam:
image: ghcr.io/floppy/van_dam:latest
container_name: vandam_vandam
env_file:
- path: ./vandam_secrets.env
required: false
volumes:
- ${STL_DIR}:/libraries
networks:
- web
- vandam
labels:
- traefik.http.routers.vandam.rule=Host(`3d.jafner.net`)
- traefik.http.routers.vandam.tls.certresolver=lets-encrypt
- traefik.http.routers.vandam.middlewares=traefik-forward-auth@file
depends_on:
- db
- redis
db:
image: postgres:latest
container_name: vandam_postgres
networks:
- vandam
env_file:
- path: ./db_secrets.env
required: false
volumes:
- db_data:/var/lib/postgresql/data
redis:
image: redis:latest
networks:
- vandam
container_name: vandam_redis
volumes:
db_data:
networks:
web:
external: true
vandam: