fixes
This commit is contained in:
1 parent
371f2caa67
commit
9bf13b6dbe
4 files changed
+25
-11
No files matched your search
+16
-2
@@ -1,3 +1,4 @@
|
||||
|
||||
# Basis-Image: Apache + PHP
|
||||
FROM php:8.2-apache
|
||||
|
||||
@@ -6,11 +7,24 @@ RUN docker-php-ext-install mysqli
|
||||
|
||||
# pdftk installieren
|
||||
RUN apt-get update && \
|
||||
apt-get install -y pdftk net-tools geoip-bin && \
|
||||
apt-get install -y \
|
||||
pdftk \
|
||||
net-tools \
|
||||
msmtp \
|
||||
msmtp-mta \
|
||||
geoip-bin && \
|
||||
apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Apache Mod Rewrite aktivieren (optional)
|
||||
RUN a2enmod rewrite
|
||||
|
||||
# NEU: AllowOverride All aktivieren, damit .htaccess funktioniert
|
||||
RUN sed -i '/<Directory \/var\/www\/>/,/<\/Directory>/ s/AllowOverride None/AllowOverride All/' /etc/apache2/apache2.conf
|
||||
RUN sed -i '/<Directory \/var\/www\/>/,/<\/Directory>/ s/AllowOverride None/AllowOverride All/' /etc/apache2/apache2.conf
|
||||
|
||||
RUN echo "sendmail_path=/usr/bin/msmtp -t -i -f bruno.eckhardt07@gmail.com" > /usr/local/etc/php/conf.d/sendmail.ini
|
||||
|
||||
COPY MAIL/msmtprc /etc/msmtprc
|
||||
|
||||
RUN chmod 644 /etc/msmtprc
|
||||
|
||||
RUN touch /var/log/msmtp.log && chmod 666 /var/log/msmtp.log
|
||||
+1
-1
@@ -29,7 +29,7 @@ backend web_public
|
||||
server node1 172.30.0.11:80 cookie node1 check
|
||||
|
||||
backend web_backend
|
||||
server node1 172.30.0.13:80 cookie node1 check
|
||||
server node1 172.30.0.12:80 cookie node1 check
|
||||
|
||||
backend stats
|
||||
mode http
|
||||
|
||||
+7
-7
@@ -1,7 +1,7 @@
|
||||
services:
|
||||
haproxy:
|
||||
image: haproxy:latest
|
||||
container_name: HAPROXY
|
||||
container_name: haproxy
|
||||
volumes:
|
||||
- ./HAPROXY/:/usr/local/etc/haproxy
|
||||
ports:
|
||||
@@ -14,7 +14,7 @@ services:
|
||||
|
||||
webserver-public:
|
||||
build: .
|
||||
container_name: WEBSERVER-PUBLIC
|
||||
container_name: webserver_public
|
||||
volumes:
|
||||
- ./WEBSERVER/PUBLIC/WEBROOT/:/var/www/html/
|
||||
ports:
|
||||
@@ -26,19 +26,19 @@ services:
|
||||
|
||||
webserver-backend:
|
||||
build: .
|
||||
container_name: WEBSERVER-BACKEND
|
||||
container_name: webserver_backend
|
||||
volumes:
|
||||
- ./WEBSERVER/BACKEND/WEBROOT/:/var/www/html/
|
||||
ports:
|
||||
- "8002:80"
|
||||
networks:
|
||||
docker-net:
|
||||
ipv4_address: 172.30.0.13
|
||||
ipv4_address: 172.30.0.12
|
||||
restart: always
|
||||
|
||||
mariadb:
|
||||
image: mariadb:latest
|
||||
container_name: MARIADB
|
||||
container_name: mariadb
|
||||
volumes:
|
||||
- ./MARIADB:/var/lib/mysql
|
||||
ports:
|
||||
@@ -50,7 +50,7 @@ services:
|
||||
MARIADB_PASSWORD: bBHofurUJWKzPE8Z
|
||||
networks:
|
||||
docker-net:
|
||||
ipv4_address: 172.30.0.12
|
||||
ipv4_address: 172.30.0.13
|
||||
restart: always
|
||||
|
||||
networks:
|
||||
@@ -58,4 +58,4 @@ networks:
|
||||
driver: bridge
|
||||
ipam:
|
||||
config:
|
||||
- subnet: 172.30.0.0/16
|
||||
- subnet: 172.30.0.0/24
|
||||
+1
-1
@@ -34,6 +34,6 @@ fi
|
||||
|
||||
git clone https://gitea.mrhossa.de/bruno/Backend.git $BASE_DIR/BACKEND
|
||||
git -C $BASE_DIR/BACKEND checkout live
|
||||
docker restart webserver_backend
|
||||
# docker restart webserver_backend
|
||||
|
||||
git clone https://gitea.mrhossa.de/bruno/Web-Public.git $BASE_DIR/PUBLIC
|
||||
Reference in new issue
Block a user