Add grocy and remove unused services

This commit is contained in:
Stephan Porada 2022-03-13 10:51:30 +01:00
parent cebcda3bb1
commit 3857df3f03
12 changed files with 89 additions and 95 deletions

3
.gitignore vendored
View File

@ -12,3 +12,6 @@ loolwsd.xml
**/redis/ **/redis/
**/html/ **/html/
**/volumes/ **/volumes/
# Excepted files still trocked even if they are in the folders above
!*/data/data/config.php

34
grocy/docker-compose.yml Normal file
View File

@ -0,0 +1,34 @@
version: '3.5'
networks:
default:
external:
name: traefik_default
services:
grocy-frontend:
image: lscr.io/linuxserver/grocy
container_name: grocy-app
restart: unless-stopped
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- ${GROCY_ROOT}/data:/config
environment:
- USER_UID=1000
- USER_GID=1000
env_file: live.env
labels:
# Watchtower
- "com.centurylinklabs.watchtower.enable=true"
# Routes
- "traefik.enable=true"
- "traefik.http.routers.grocy.entrypoints=websecure"
- "traefik.http.routers.grocy.rule=Host(`grocy.${DOMAIN}`)"
- "traefik.http.routers.grocy.tls=true"
- "traefik.http.routers.grocy.tls.certresolver=myresolver"
networks:
- default
ports:
- 9283:80

50
grocy/live.env.tpl Normal file
View File

@ -0,0 +1,50 @@
# Grocy Environment Variables
# These environment variables affect PHP and the grocy application
# For a full list of grocy settings, see config-dist.php in the main grocy repo:
#
# https://github.com/grocy/grocy/blob/master/config-dist.php
#
# Grocy application settings must be prefixed with 'GROCY_'.
#
# For example, if we'd like to configure grocy to use Euros (EUR):
#
# Setting('CURRENCY', 'USD');
#
# Then we would set GROCY_CURRENCY=EUR
## User-supplied Variables
# These are environment variables that may be supplied by the user
# No values are supplied for these as part of this distribution
# When you're ready to deploy grocy in production, set GROCY_MODE=production
# to enable user authentication
GROCY_MODE=production
## Distribution-supplied Variables
# These are 'sensible defaults' provided as part of the grocy-docker
# distribution.
# GROCY_CULTURE configures localization of the grocy application
# Supported locales: https://github.com/grocy/grocy/tree/master/localization
GROCY_CULTURE=de
GROCY_CURRENCY=EUR
GROCY_DEFAULT_LOCALE=de
# Grocy Mode
GROCY_MODE=production
# PHP Environment variables
MAX_UPLOAD=50M
PHP_MAX_FILE_UPLOAD=200
PHP_MAX_POST=100M
PHP_MEMORY_LIMIT=512M
#Custom Settings
GROCY_ROOT=/home/compute/services/grocy
DOMAIN=domain.com

View File

@ -1 +0,0 @@
Not Traefik ready!

View File

@ -1,8 +0,0 @@
version: "3.7"
services:
streaming:
image: tiangolo/nginx-rtmp
container_name: nginx-rtmp
ports:
- "1935:1935"
restart: unless-stopped

View File

@ -1,3 +0,0 @@
RTMPS traefik config inspired by this example:
https://github.com/owncast/owncast/commit/b7ef15471577c5de0491995bb5e0f08a43bb2bb3

View File

@ -1,31 +0,0 @@
version: '3.5'
networks:
default:
external:
name: traefik_default
services:
owncast:
image: gabekangas/owncast:latest
restart: unless-stopped
container_name: owncast-app
env_file: live.env
networks:
- default
ports:
- "8080:8080"
volumes:
- ${OWNCAST_ROOT}/db:/db # Remove if you don't want chat persistant
command: /app/owncast -configFile=config.yaml -database=/db/chat.db
labels:
- "traefik.enable=true"
- "traefik.http.routers.owncast.rule=Host(`watch.${DOMAIN}`)"
- "traefik.http.routers.owncast.entrypoints=websecure"
- "traefik.http.routers.owncast.tls.certresolver=myresolver"
- "traefik.tcp.routers.rtmpcast.entrypoints=rtmp"
- "traefik.tcp.routers.rtmpcast.rule=HostSNI(`watch.${DOMAIN}`)"
- "traefik.tcp.routers.rtmpcast.service=rtmpcast"
- "traefik.tcp.routers.rtmpcast.tls=true"
- "traefik.tcp.routers.rtmpcast.tls.certresolver=myresolver"
- "traefik.tcp.services.rtmpcast.loadbalancer.server.port=1935"

View File

View File

View File

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

View File

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

View File

@ -118,7 +118,7 @@ services:
- "--entrypoints.ts-udp.address=:9987/udp" - "--entrypoints.ts-udp.address=:9987/udp"
- "--entrypoints.ts-tcp.address=:30033" - "--entrypoints.ts-tcp.address=:30033"
# OSP rtmp entrypoints # OSP rtmp entrypoints
- "--entrypoints.rtmp.address=:1935" #- "--entrypoints.rtmp.address=:1935"
# Use this CA server for testing # Use this CA server for testing
# - "--certificatesresolvers.myresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory" # - "--certificatesresolvers.myresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory"
- "--certificatesresolvers.myresolver.acme.email=${EMAIL}" - "--certificatesresolvers.myresolver.acme.email=${EMAIL}"
@ -157,7 +157,7 @@ services:
#- "10011:10011" #- "10011:10011"
- "30033:30033" - "30033:30033"
# OSP rtmp ports # OSP rtmp ports
- "1935:1935" #- "1935:1935"
volumes: volumes:
# For certificate # For certificate
- "./volumes/letsencrypt/acme.json:/letsencrypt/acme.json" - "./volumes/letsencrypt/acme.json:/letsencrypt/acme.json"