unfallkarte/docker-compose.yml

41 lines
1.1 KiB
YAML
Raw Normal View History

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