This commit is contained in:
Tobias Schmidl 2021-09-28 07:23:27 +02:00
commit e4d4465191
2 changed files with 89 additions and 0 deletions

24
.gitignore vendored Normal file
View file

@ -0,0 +1,24 @@
### Vim
# Swap
[._]*.s[a-v][a-z]
!*.svg # comment out if you don't need vector files
[._]*.sw[a-p]
[._]s[a-rt-v][a-z]
[._]ss[a-gi-z]
[._]sw[a-p]
# Session
Session.vim
Sessionx.vim
# Temporary
.netrwhist
*~
# Auto-generated tag files
tags
# Persistent undo
[._]*.un~
## custom to this docker-compose file
/data

65
docker-compose.yml Normal file
View file

@ -0,0 +1,65 @@
---
version: '3.7'
services:
echo:
command:
- '-text=<!DOCTYPE html><html lang="en"><head><meta charset="utf-8" /><title>schmidl.dev</title></head><body><p>Hello, world.</p></body></html>'
init: true
expose: [5678/tcp]
restart: unless-stopped
environment:
TZ: Europe/Berlin
QUASSEL_HOSTNAME:
image: hashicorp/http-echo
labels:
- traefik.enable=true
- traefik.http.routers.schmidldev.entryPoints=websecure
- traefik.http.routers.schmidldev.middlewares=commonSSLHeaders
- traefik.http.routers.schmidldev.rule=Host(`${QUASSEL_HOSTNAME}`)
- traefik.http.routers.schmidldev.tls.certResolver=acmelive
certdumper:
image: humenius/traefik-certs-dumper
init: true
network_mode: none
command: '--restart-containers quassel-core'
volumes:
- ../traefik/acme:/traefik:ro
- ./data/ssl/:/output:rw
- /var/run/docker.sock:/var/run/docker.sock:ro
depends_on: [ echo ]
environment:
OVERRIDE_UID: 1000
OVERRIDE_GID: 1000
QUASSEL_HOSTNAME:
DOMAIN: ${QUASSEL_HOSTNAME}
healthcheck:
test: ["CMD", "/usr/bin/healthcheck"]
interval: 30s
timeout: 10s
retries: 5
quassel-core:
image: ghcr.io/linuxserver/quassel-core
container_name: quassel-core
init: true
environment:
PUID: 1000
PGID: 1000
DB_BACKEND: SQLite
AUTH_AUTHENTICATOR: Database
TZ: Europe/Berlin
RUN_OPTS: --config-from-environment --require-ssl --ssl-cert /ssl/cert.pem --ssl-key /ssl/key.pem
depends_on: [ certdumper ]
volumes:
- ./data/config:/config:rw
- ./data/ssl:/ssl:ro
ports:
- 4242:4242
- 113:10113 #optional
restart: unless-stopped
networks:
default:
name: traefik_internal
external: true
...