46 lines
900 B
YAML
46 lines
900 B
YAML
version: '3.9'
|
|
|
|
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:13
|
|
container_name: vandam_postgres
|
|
networks:
|
|
- vandam
|
|
env_file:
|
|
- path: ./db_secrets.env
|
|
required: false
|
|
volumes:
|
|
- db_data:/var/lib/postgresql/data
|
|
|
|
redis:
|
|
image: redis:6
|
|
networks:
|
|
- vandam
|
|
container_name: vandam_redis
|
|
|
|
volumes:
|
|
db_data:
|
|
|
|
networks:
|
|
web:
|
|
external: true
|
|
vandam: |