homelab/server/config/sharry/docker-compose.yml

35 lines
727 B
YAML

version: '3'
services:
sharry:
image: eikek0/sharry:latest
container_name: sharry_sharry
command: /opt/sharry.conf
volumes:
- ${PWD}/sharry.conf:/opt/sharry.conf
depends_on:
- db
networks:
- web
- sharry
labels:
- traefik.http.routers.sharry.rule=Host(`share.jafner.net`)
- traefik.http.routers.sharry.tls.certresolver=lets-encrypt
db:
image: postgres:14.2
container_name: sharry_db
networks:
- sharry
volumes:
- $DOCKER_DATA:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=dbuser
- POSTGRES_PASSWORD=dbpass
- POSTGRES_DB=dbname
volumes:
postgres_data:
networks:
sharry:
web:
external: true