2023-10-06 13:08:54 +02:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
2023-10-26 11:20:38 +02:00
|
|
|
dev-unfallkarte:
|
2023-10-06 13:08:54 +02:00
|
|
|
image: php81:v1
|
2023-10-07 10:37:24 +02:00
|
|
|
container_name: dev-unfallkarte
|
2023-10-06 13:08:54 +02:00
|
|
|
volumes:
|
2023-10-07 10:10:40 +02:00
|
|
|
- ./:/var/www/html
|
2023-10-06 13:08:54 +02:00
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
2023-10-07 10:37:24 +02:00
|
|
|
- "traefik.http.routers.dev-unfallkarte.entrypoints=https"
|
|
|
|
- "traefik.http.routers.dev-unfallkarte.rule=Host(`unfallkarte.hpadm.de`)"
|
|
|
|
- "traefik.http.routers.dev-unfallkarte.tls=true"
|
|
|
|
- "traefik.http.routers.dev-unfallkarte.tls.certresolver=http"
|
|
|
|
- "traefik.http.routers.dev-unfallkarte.middlewares=default@file"
|
|
|
|
- "traefik.http.routers.dev-unfallkarte.service=dev-unfallkarte"
|
|
|
|
- "traefik.http.services.dev-unfallkarte.loadbalancer.server.port=80"
|
2023-10-06 13:08:54 +02:00
|
|
|
- "traefik.docker.network=proxy"
|
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
- proxy
|
|
|
|
restart: always
|
|
|
|
|
2023-10-26 11:20:38 +02:00
|
|
|
dev-unfallkarte-db:
|
2023-10-06 13:08:54 +02:00
|
|
|
image: mariadb
|
2023-10-26 11:20:38 +02:00
|
|
|
container_name: dev-unfallkarte-db
|
2023-10-06 13:08:54 +02:00
|
|
|
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
|