httpd-api (#499)

Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: #499
This commit is contained in:
Michael Grote 2023-04-14 12:20:34 +02:00
parent 864fac0b0f
commit 7ad6f78b3c
7 changed files with 28 additions and 24 deletions

View file

@ -5,10 +5,29 @@ services:
image: httpd:bullseye image: httpd:bullseye
restart: always restart: always
volumes: volumes:
# mounte das lokale Verzeichnis in den Container, der Inhalt ist dann per http aufzurufen; reingeschrieben wird in den lokalen Ordner z.B. per scp aus der Pipeline heraus - uploads:/usr/local/apache2/htdocs/
- /mnt/httpd:/usr/local/apache2/htdocs/
- "${PWD}/httpd.conf:/usr/local/apache2/conf/httpd.conf:ro" - "${PWD}/httpd.conf:/usr/local/apache2/conf/httpd.conf:ro"
ports: ports:
- 3344:80 - 3344:80
labels: labels:
- com.centurylinklabs.watchtower.enable=true - 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:

View file

@ -189,7 +189,7 @@
- nano - nano
- ubuntu-advantage-tools - ubuntu-advantage-tools
apt_packages_internet: apt_packages_internet:
- http://docker10.grote.lan:3344/bash-helper-scripts-mgrote/bash-helper-scripts-mgrote-latest.deb - http://docker10.grote.lan:3344/bash-helper-scripts-mgrote-latest.deb

View file

@ -75,4 +75,4 @@
### mgrote.apt_manage_packages ### mgrote.apt_manage_packages
apt_packages_internet: apt_packages_internet:
- https://github.com/rclone/rclone/releases/download/v1.59.2/rclone-v1.59.2-linux-amd64.deb - https://github.com/rclone/rclone/releases/download/v1.59.2/rclone-v1.59.2-linux-amd64.deb
- http://docker10.grote.lan:3344/bash-helper-scripts-mgrote/bash-helper-scripts-mgrote-latest.deb - http://docker10.grote.lan:3344/bash-helper-scripts-mgrote-latest.deb

View file

@ -12,21 +12,10 @@
filesystem: xfs filesystem: xfs
mount: true mount: true
mntp: /var/lib/docker mntp: /var/lib/docker
- vgname: vg_docker2
disks:
- /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi2
create: true
lvnames:
- lvname: httpd
size: 1G
create: true
filesystem: xfs
mount: true
mntp: /mnt/httpd
manage_lvm: true manage_lvm: true
pvresize_to_max: true pvresize_to_max: true
### mgrote.restic ### mgrote.restic
restic_folders_to_backup: "/ /var/lib/docker /mnt/httpd" # --one-file-system ist gesetzt, also werden weitere Dateisysteme nicht eingeschlossen, es sei denn sie werden hier explizit angegeben restic_folders_to_backup: "/ /var/lib/docker" # --one-file-system ist gesetzt, also werden weitere Dateisysteme nicht eingeschlossen, es sei denn sie werden hier explizit angegeben
### mgrote.docker-compose-inline ### mgrote.docker-compose-inline
compose_owner: "docker-user" compose_owner: "docker-user"
@ -47,7 +36,7 @@
- name: nextcloud - name: nextcloud
state: present state: present
network: traefik network: traefik
- name: httpd # das Volume hat die Rechte 0777 damit jeder per SSH reinschreiben kann; ist fur drone.io eingerichtet; siehe $dir_permissions - name: httpd
state: present state: present
- name: unifi-controller - name: unifi-controller
state: present state: present
@ -78,10 +67,6 @@
- name: blocky - name: blocky
state: present state: present
#### mgrote.set_permissions
dir_permissions:
- path: /mnt/httpd
mode: '0777'
### oefenweb.ufw ### oefenweb.ufw
ufw_rules: ufw_rules:
- rule: allow - rule: allow
@ -159,7 +144,7 @@
src: https://git.mgrote.net/mg/mirror-munin-contrib/raw/branch/master/plugins/http/http_response src: https://git.mgrote.net/mg/mirror-munin-contrib/raw/branch/master/plugins/http/http_response
config: | config: |
[http_response] [http_response]
env.sites http://docker10.grote.lan:333 http://docker10.grote.lan:8888/nodes http://docker10.grote.lan:1234 https://nextcloud.mgrote.net http://docker10.grote.lan:2342 http://docker10.grote.lan:8000/login http://docker10.grote.lan:3344 http://docker10.grote.lan:5000 https://miniflux.mgrote.net/ http://docker10.grote.lan:3001 http://docker10.grote.lan:8081 env.sites http://docker10.grote.lan:333 http://docker10.grote.lan:8888/nodes http://docker10.grote.lan:1234 https://nextcloud.mgrote.net http://docker10.grote.lan:2342 http://docker10.grote.lan:8000/login http://docker10.grote.lan:3344 http://docker10.grote.lan:5000 https://miniflux.mgrote.net/ http://docker10.grote.lan:3001 http://docker10.grote.lan:8081 http://docker10.grote.lan:5040
env.max_time 20 env.max_time 20
env.short_label true env.short_label true
env.follow_redirect true env.follow_redirect true

Binary file not shown.

View file

@ -1,2 +1,2 @@
--- ---
alacritty_url: http://docker10.grote.lan:3344/alacritty/alacritty-latest.tar.gz alacritty_url: http://docker10.grote.lan:3344/alacritty-latest.tar.gz

View file

@ -15,7 +15,7 @@ aus.
- Extra-Parameter für einzelne Hosts - Extra-Parameter für einzelne Hosts
apt_packages_internet: apt_packages_internet:
- für URLs - für URLs
- https://git.mgrote.net/mg/bash-helper-scripts-mgrote/raw/branch/master/output/bash-helper-scripts-mgrote-latest.deb - http://docker10.grote.lan:3344/bash-helper-scripts-mgrote-latest.deb
``` ```