Skip to content
Snippets Groups Projects
Commit 3518bf30 authored by Sebastian Schroeder's avatar Sebastian Schroeder
Browse files

Neue Ordnerstruktur #3

- Alle Website Dateien nun unter public/
- Dockerfile unter .docker/
parent de783aad
Branches
No related merge requests found
Showing
with 50 additions and 0 deletions
FROM php:8.0.1-apache
RUN apt-get update
RUN apt-get install -y libzip-dev libjpeg62-turbo-dev libpng-dev libfreetype6-dev libmcrypt-dev
# Install extensions
RUN docker-php-ext-install pdo_mysql zip exif pcntl gd
COPY .docker/vhost.conf /etc/apache2/sites-available/000-default.conf
COPY public /app
RUN chown -R www-data:www-data /app && a2enmod rewrite
<VirtualHost *:*>
DocumentRoot /app
<Directory "/app">
AllowOverride all
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
File moved
version: '3'
services:
maphin-php:
build:
context: .
dockerfile: .docker/Dockerfile
image: maphin-php
container_name: maphin-php
expose:
- "80"
environment:
- VIRTUAL_HOST=uni.basti.rocks
- VIRTUAL_PORT=80
- LETSENCRYPT_HOST=uni.basti.rocks
- LETSENCRYPT_EMAIL=admin@basti.rocks
- TZ=Europe/Berlin
networks:
- proxy
restart: unless-stopped
networks:
proxy:
external:
name: nginx-proxy
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment