From f909f0f8e8538a7aa3ba17575c85333dde9fc2b3 Mon Sep 17 00:00:00 2001 From: Mika Bomm Date: Tue, 23 Jul 2024 22:39:17 +0200 Subject: [PATCH] add composes --- .gitignore | 15 +++++++------- caddy/.env.example | 2 ++ caddy/Caddyfile | 41 +++++++++++++++++++++++++++++++++++++++ caddy/compose.yaml | 29 +++++++++++++++++++++++++++ ddns-updater/compose.yaml | 9 +++++++++ stirling-pdf/compose.yaml | 14 +++++++++++++ 6 files changed, 103 insertions(+), 7 deletions(-) create mode 100644 caddy/.env.example create mode 100644 caddy/Caddyfile create mode 100644 caddy/compose.yaml create mode 100644 ddns-updater/compose.yaml create mode 100644 stirling-pdf/compose.yaml diff --git a/.gitignore b/.gitignore index 543a7cc..1584e69 100644 --- a/.gitignore +++ b/.gitignore @@ -1,12 +1,13 @@ # Ignore everything -** +* -# But not this file -!**/compose.yml -!README.md + +# But not these directories; this allows us to look inside them +!*/ + +# But not these files +!**/*.md !.gitignore - - -# Caddy +!**/compose.yml !**/Caddyfile !**/.env.example diff --git a/caddy/.env.example b/caddy/.env.example new file mode 100644 index 0000000..b87aba4 --- /dev/null +++ b/caddy/.env.example @@ -0,0 +1,2 @@ +PORKBUN_API_KEY= +PORKBUN_API_SECRET_KEY= diff --git a/caddy/Caddyfile b/caddy/Caddyfile new file mode 100644 index 0000000..b272d82 --- /dev/null +++ b/caddy/Caddyfile @@ -0,0 +1,41 @@ +# GLOBAL CONFIGURATIONS +{ + #http_port 81 + #https_port 444 + # readd later already rate limited :( + email mika.bomm@outlook.com + acme_ca https://acme-staging-v02.api.letsencrypt.org/directory + #acme_dns porkbun { + # api_key {$PORKBUN_API_KEY} # dont hardcode this please + # api_secret_key {$PORKBUN_API_SECRET_KEY} #dont hardcode this please + #} + + # auto_https off + # Done for debugging +} + +# SNIPPETS +(logging) { + log { + output file /var/log/caddy.log + format json + } +} + +#pdf2.mixel.cloud { +# reverse_proxy 192.168.178.230:55556 +#} + +mini1.docker.local { + import logging + reverse_proxy http://192.168.178.230:55556 +} + +http://192.168.178.230 { + import logging + reverse_proxy http://192.168.178.230:55556 +} + +:81 { + respond "Hello, World!" +} diff --git a/caddy/compose.yaml b/caddy/compose.yaml new file mode 100644 index 0000000..2d9e0bf --- /dev/null +++ b/caddy/compose.yaml @@ -0,0 +1,29 @@ +services: + caddy: + image: caddy:2.8.4-alpine + restart: unless-stopped + container_name: caddy + ports: + - "80:80" + - "443:443" + - "81:81" + volumes: + - ./Caddyfile:/etc/caddy/Caddyfile + - ./site:/srv + - caddy_data:/data + - caddy_config:/config + - ./logs:/var/log/caddy + networks: + - caddy + env_file: + - .env + +networks: + caddy: + + +volumes: + caddy_data: + external: true + caddy_config: + diff --git a/ddns-updater/compose.yaml b/ddns-updater/compose.yaml new file mode 100644 index 0000000..ae7bf7a --- /dev/null +++ b/ddns-updater/compose.yaml @@ -0,0 +1,9 @@ +services: + ddns-updater: + ports: + - 55555:8000/tcp + volumes: + - /opt/stacks/ddns-updater/data:/updater/data + image: qmcgaw/ddns-updater + restart: unless-stopped +networks: {} diff --git a/stirling-pdf/compose.yaml b/stirling-pdf/compose.yaml new file mode 100644 index 0000000..a96ef61 --- /dev/null +++ b/stirling-pdf/compose.yaml @@ -0,0 +1,14 @@ +services: + stirling-pdf: + image: frooodle/s-pdf:latest + ports: + - '55556:8080' + volumes: + - ./trainingData:/usr/share/tessdata #Required for extra OCR languages + - ./extraConfigs:/configs +# - ./customFiles:/customFiles/ +# - ./logs:/logs/ + environment: + - DOCKER_ENABLE_SECURITY=false + - INSTALL_BOOK_AND_ADVANCED_HTML_OPS=false + - LANGS=en_GB \ No newline at end of file