Add silverstrike.

This commit is contained in:
Stephan Porada 2021-10-31 11:36:37 +01:00
parent 56a72a55e0
commit 3de9dad43f
3 changed files with 50 additions and 0 deletions

0
silverstrike/README.md Normal file
View File

View File

@ -0,0 +1,38 @@
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

12
silverstrike/live.env.tpl Normal file
View File

@ -0,0 +1,12 @@
# Silverstrike
ALLOWED_HOSTS='https://silverstrike.domain.com'
DATABASE_URL=postgres://dbuser:dbpassword@dbdockerhostname/dbname
SECRET_KEY=SUPER_SECRET_CHANGE_ME
SILVERSTRIKE_ROOT=/home/compute/services/silverstrike
DEBUG=False
DOMAIN=domain.com
# Postgres
POSTGRES_DB=dbname
POSTGRES_USER=dbuser
POSTGRES_PASSWORD=dbpassword