selfhosted-traefik/silverstrike/docker-compose.yml

39 lines
976 B
YAML
Raw Normal View History

2021-10-31 10:36:37 +00:00
version: '3.5'
networks:
default:
external:
name: traefik_default
services:
silverstrike-app:
env_file: live.env
image: simhnna/silverstrike
container_name: silverstrike-app
labels:
# Watchtower
- "com.centurylinklabs.watchtower.enable=true"
# Routes
- "traefik.enable=true"
- "traefik.http.routers.silverstrike.entrypoints=websecure"
- "traefik.http.routers.silverstrike.rule=Host(`silverstrike.${DOMAIN}`)"
- "traefik.http.routers.silverstrike.tls=true"
- "traefik.http.routers.silverstrike.tls.certresolver=myresolver"
networks:
- default
ports:
- 8100:8000
restart: unless-stopped
silverstrike-db:
env_file: live.env
image: postgres:14
container_name: silverstrike-db
labels:
# Watchtower
- "com.centurylinklabs.watchtower.enable=true"
networks:
- default
volumes:
- ${SILVERSTRIKE_ROOT}/db:/var/lib/postgresql/data