homeserver/docker-compose/httpd/docker-compose.yml.j2
mg 7ad6f78b3c httpd-api (#499)
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: #499
2023-04-14 12:20:34 +02:00

33 lines
846 B
Django/Jinja

version: '3'
services:
httpd-registry:
container_name: "httpd-registry"
image: httpd:bullseye
restart: always
volumes:
- uploads:/usr/local/apache2/htdocs/
- "${PWD}/httpd.conf:/usr/local/apache2/conf/httpd.conf:ro"
ports:
- 3344:80
labels:
- com.centurylinklabs.watchtower.enable=true
python-api-server:
container_name: httpd-api
image: quotengrote/python-api-server:latest
restart: always
ports:
- "5040:5000"
volumes:
- uploads:/uploads
environment:
# FLASK_DEBUG: 1 # for debugging
# FLASK_APP: app # for debugging
MAX_CONTENT_LENGTH: 50
UPLOAD_DIRECTORY: /uploads
AUTH_TOKEN: {{ lookup('keepass', 'httpd-api-server-token', 'password') }}
labels:
- com.centurylinklabs.watchtower.enable=true
volumes:
uploads: