clean up
This commit is contained in:
40
docker/docker-compose.sample.yml
Normal file
40
docker/docker-compose.sample.yml
Normal file
@@ -0,0 +1,40 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
dev-hindernis:
|
||||
image: php81:v1
|
||||
container_name: dev-hindernis
|
||||
volumes:
|
||||
- ./:/var/www/html
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.dev-hindernis.entrypoints=https"
|
||||
- "traefik.http.routers.dev-hindernis.rule=Host(`nrw-hindernis.hpadm.de`)"
|
||||
- "traefik.http.routers.dev-hindernis.tls=true"
|
||||
- "traefik.http.routers.dev-hindernis.tls.certresolver=http"
|
||||
- "traefik.http.routers.dev-hindernis.middlewares=default@file"
|
||||
- "traefik.http.routers.dev-hindernis.service=dev-hindernis"
|
||||
- "traefik.http.services.dev-hindernis.loadbalancer.server.port=80"
|
||||
- "traefik.docker.network=proxy"
|
||||
networks:
|
||||
- default
|
||||
- proxy
|
||||
restart: always
|
||||
|
||||
dev-hindernis-db:
|
||||
image: mariadb
|
||||
container_name: dev-hindernis-db
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=geheim #SQL root Passwort eingeben
|
||||
- MYSQL_INITDB_SKIP_TZINFO=1
|
||||
- MARIADB_AUTO_UPGRADE=1
|
||||
volumes:
|
||||
- ./database:/var/lib/mysql
|
||||
networks:
|
||||
- default
|
||||
- proxy
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
||||
7
docker/php81-apache/Dockerfile
Normal file
7
docker/php81-apache/Dockerfile
Normal file
@@ -0,0 +1,7 @@
|
||||
FROM php:8.1-apache
|
||||
RUN apt-get update && docker-php-ext-install pdo_mysql calendar mysqli zip
|
||||
|
||||
RUN a2enmod rewrite headers
|
||||
|
||||
COPY . /var/www
|
||||
EXPOSE 80
|
||||
Reference in New Issue
Block a user