diff --git a/silverstrike/README.md b/silverstrike/README.md new file mode 100644 index 0000000..e69de29 diff --git a/silverstrike/docker-compose.yml b/silverstrike/docker-compose.yml new file mode 100644 index 0000000..dbb42a4 --- /dev/null +++ b/silverstrike/docker-compose.yml @@ -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 diff --git a/silverstrike/live.env.tpl b/silverstrike/live.env.tpl new file mode 100644 index 0000000..17d0bd1 --- /dev/null +++ b/silverstrike/live.env.tpl @@ -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