2022-08-25 22:22:11 +02:00
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
httpd-registry:
|
|
|
|
container_name: "httpd-registry"
|
2024-02-02 12:58:48 +01:00
|
|
|
image: "registry.mgrote.net/httpd:master"
|
2022-08-25 22:22:11 +02:00
|
|
|
restart: always
|
|
|
|
volumes:
|
2023-04-14 12:20:34 +02:00
|
|
|
- uploads:/usr/local/apache2/htdocs/
|
2023-10-26 00:14:16 +02:00
|
|
|
- "{{ compose_dest_basedir }}/httpd/httpd.conf:/usr/local/apache2/conf/httpd.conf:ro"
|
2022-08-25 22:22:11 +02:00
|
|
|
ports:
|
|
|
|
- 3344:80
|
2023-03-21 19:00:37 +01:00
|
|
|
labels:
|
2023-04-20 14:50:33 +02:00
|
|
|
com.centurylinklabs.watchtower.enable: true
|
2024-02-02 12:58:48 +01:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost/"]
|
|
|
|
interval: 30s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 3
|
2023-04-14 12:20:34 +02:00
|
|
|
|
|
|
|
python-api-server:
|
|
|
|
container_name: httpd-api
|
2024-02-01 16:11:41 +01:00
|
|
|
image: "registry.mgrote.net/python-api-server:latest@sha256:8a43f0e0c5a779fa08e50a5197916f54ca72dbed5bf07273f075900030c5703a"
|
2023-04-14 12:20:34 +02:00
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- "5040:5000"
|
|
|
|
volumes:
|
|
|
|
- uploads:/uploads
|
|
|
|
environment:
|
|
|
|
# FLASK_DEBUG: 1 # for debugging
|
|
|
|
# FLASK_APP: app # for debugging
|
2023-07-05 11:47:57 +02:00
|
|
|
MAX_CONTENT_LENGTH: 500
|
2023-04-14 12:20:34 +02:00
|
|
|
UPLOAD_DIRECTORY: /uploads
|
2024-01-26 22:37:25 +01:00
|
|
|
AUTH_TOKEN: "{{ lookup('keepass', 'httpd-api-server-token', 'password') }}"
|
2023-05-12 08:18:45 +02:00
|
|
|
ENABLE_WEBSERVER: false
|
2023-04-14 12:20:34 +02:00
|
|
|
labels:
|
2023-04-20 14:50:33 +02:00
|
|
|
com.centurylinklabs.watchtower.enable: true
|
2023-04-14 12:20:34 +02:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
uploads:
|