Webserver hinzugefügt
This commit is contained in:
9
webserver/.env.sample
Normal file
9
webserver/.env.sample
Normal file
@@ -0,0 +1,9 @@
|
||||
#MySQL Datenbank
|
||||
MYSQL_USER=changeMe
|
||||
MYSQL_PASSWORD=changeMe
|
||||
MYSQL_ROOT_PASSWORD=changeMe
|
||||
|
||||
#Code-Server
|
||||
PASSWORD=changeMe
|
||||
SUDO_PASSWORD=changeMe
|
||||
PROXY_DOMAIN=code.meineDomain.de
|
||||
20
webserver/Dockerfile
Normal file
20
webserver/Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
FROM php:7.4.3-apache
|
||||
#FROM php:apache
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y \
|
||||
libfreetype6-dev \
|
||||
libjpeg62-turbo-dev \
|
||||
libpng-dev \
|
||||
libzip-dev \
|
||||
&& a2enmod rewrite \
|
||||
&& a2enmod headers
|
||||
|
||||
RUN docker-php-ext-configure gd --with-freetype --with-jpeg
|
||||
RUN docker-php-ext-install opcache gd pdo_mysql zip
|
||||
|
||||
# Backup, falls mysqli nicht funktioniert
|
||||
RUN docker-php-ext-install mysqli
|
||||
|
||||
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
|
||||
RUN service apache2 restart
|
||||
62
webserver/docker-compose.yml
Normal file
62
webserver/docker-compose.yml
Normal file
@@ -0,0 +1,62 @@
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
webserver:
|
||||
container_name: webserver
|
||||
build: .
|
||||
ports:
|
||||
- 8180:80
|
||||
user: "www-data:www-data"
|
||||
environment:
|
||||
- TZ=Europe/Berlin
|
||||
volumes:
|
||||
- ./DocumentRoot:/var/www/html
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
restart: unless-stopped
|
||||
|
||||
database:
|
||||
image: mariadb:latest
|
||||
container_name: webserver_mariadb
|
||||
ports:
|
||||
- 3309:3306
|
||||
environment:
|
||||
- MYSQL_USER=${MYSQL_USER}
|
||||
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
||||
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
|
||||
- TZ=Europe/Berlin
|
||||
volumes:
|
||||
- ./dbdata:/var/lib/mysql
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
restart: unless-stopped
|
||||
|
||||
phpmyadmin:
|
||||
image: phpmyadmin/phpmyadmin
|
||||
container_name: webserver_phpmyadmin
|
||||
environment:
|
||||
- TZ=Europe/Berlin
|
||||
links:
|
||||
- 'database:db'
|
||||
ports:
|
||||
- 8087:80
|
||||
restart: unless-stopped
|
||||
|
||||
code-server:
|
||||
image: ghcr.io/linuxserver/code-server
|
||||
container_name: webserver_code-server
|
||||
environment:
|
||||
- PUID=33
|
||||
- PGID=33
|
||||
- TZ=Europe/Berlin
|
||||
- PASSWORD=${PASSWORD}
|
||||
- SUDO_PASSWORD=${SUDO_PASSWORD}
|
||||
- PROXY_DOMAIN=${PROXY_DOMAIN}
|
||||
- HASHED_PASSWORD= #optional
|
||||
- SUDO_PASSWORD_HASH= #optional
|
||||
volumes:
|
||||
- ./config:/config
|
||||
- ./DocumentRoot:/code
|
||||
ports:
|
||||
- 8181:8443
|
||||
links:
|
||||
- 'webserver'
|
||||
restart: unless-stopped
|
||||
Reference in New Issue
Block a user