39 lines
976 B
YAML
39 lines
976 B
YAML
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
|