From 0d297173329e8c520d702d843b64f04d84d582c7 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Tue, 29 Oct 2024 20:55:52 +0100 Subject: [PATCH] sdfs --- friedhof/httpd | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 friedhof/httpd diff --git a/friedhof/httpd b/friedhof/httpd new file mode 100644 index 00000000..6039d32b --- /dev/null +++ b/friedhof/httpd @@ -0,0 +1,31 @@ +services: + httpd-registry: + container_name: "httpd-registry" + image: "registry.mgrote.net/httpd:latest" + restart: unless-stopped + pull_policy: missing + volumes: + - uploads:/usr/local/apache2/htdocs/ + - "{{ compose_dest_basedir }}/httpd/httpd.conf:/usr/local/apache2/conf/httpd.conf:ro" + ports: + - 3344:80 + + python-api-server: + container_name: httpd-api + image: "registry.mgrote.net/python-api-server:latest" + restart: unless-stopped + pull_policy: missing + ports: + - "5040:5000" + volumes: + - uploads:/uploads + environment: + # FLASK_DEBUG: 1 # for debugging + # FLASK_APP: app # for debugging + MAX_CONTENT_LENGTH: 500 + UPLOAD_DIRECTORY: /uploads + AUTH_TOKEN: "{{ lookup('viczem.keepass.keepass', 'httpd-api-server-token', 'password') }}" + ENABLE_WEBSERVER: false + +volumes: + uploads: