homeserver/docker-compose/httpd/docker-compose.yml.j2
Michael Grote 65fb6fcc37 replace httpd with registry.mgrote.net/httpd:master (#730)
Reviewed-on: #730
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
2024-02-02 12:58:48 +01:00

39 lines
1.1 KiB
Django/Jinja

version: '3'
services:
httpd-registry:
container_name: "httpd-registry"
image: "registry.mgrote.net/httpd:master"
restart: always
volumes:
- uploads:/usr/local/apache2/htdocs/
- "{{ compose_dest_basedir }}/httpd/httpd.conf:/usr/local/apache2/conf/httpd.conf:ro"
ports:
- 3344:80
labels:
com.centurylinklabs.watchtower.enable: true
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost/"]
interval: 30s
timeout: 10s
retries: 3
python-api-server:
container_name: httpd-api
image: "registry.mgrote.net/python-api-server:latest@sha256:8a43f0e0c5a779fa08e50a5197916f54ca72dbed5bf07273f075900030c5703a"
restart: always
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('keepass', 'httpd-api-server-token', 'password') }}"
ENABLE_WEBSERVER: false
labels:
com.centurylinklabs.watchtower.enable: true
volumes:
uploads: