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

35 lines
727 B
YAML
Raw Normal View History

2022-02-26 23:51:39 -08:00
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
2022-02-26 23:58:13 -08:00
- sharry
2022-02-26 23:51:39 -08:00
labels:
- traefik.http.routers.sharry.rule=Host(`share.jafner.net`)
2022-02-26 23:51:39 -08:00
- traefik.http.routers.sharry.tls.certresolver=lets-encrypt
db:
image: postgres:14.2
container_name: sharry_db
2022-02-26 23:58:13 -08:00
networks:
- sharry
2022-02-26 23:51:39 -08:00
volumes:
- $DOCKER_DATA:/var/lib/postgresql/data/
2022-02-26 23:51:39 -08:00
environment:
- POSTGRES_USER=dbuser
- POSTGRES_PASSWORD=dbpass
- POSTGRES_DB=dbname
volumes:
postgres_data:
networks:
2022-02-26 23:58:13 -08:00
sharry:
2022-02-26 23:51:39 -08:00
web:
external: true