melder/docker-compose.sample.yml

41 lines
1.1 KiB
YAML
Raw Normal View History

2024-02-18 13:37:18 +01:00
version: '3'
services:
2024-02-21 19:42:20 +01:00
dev-ideenmelder:
2024-02-18 13:37:18 +01:00
image: php81:v1
2024-02-21 19:42:20 +01:00
container_name: dev-ideenmelder
2024-02-18 13:37:18 +01:00
volumes:
- ./:/var/www/html
labels:
- "traefik.enable=true"
2024-02-21 19:42:20 +01:00
- "traefik.http.routers.dev-ideenmelder.entrypoints=https"
- "traefik.http.routers.dev-ideenmelder.rule=Host(`nrw-ideenmelder.hpadm.de`)"
- "traefik.http.routers.dev-ideenmelder.tls=true"
- "traefik.http.routers.dev-ideenmelder.tls.certresolver=http"
- "traefik.http.routers.dev-ideenmelder.middlewares=default@file"
- "traefik.http.routers.dev-ideenmelder.service=dev-ideenmelder"
- "traefik.http.services.dev-ideenmelder.loadbalancer.server.port=80"
2024-02-18 13:37:18 +01:00
- "traefik.docker.network=proxy"
networks:
- default
- proxy
restart: always
2024-02-21 19:42:20 +01:00
dev-ideenmelder-db:
2024-02-18 13:37:18 +01:00
image: mariadb
2024-02-21 19:42:20 +01:00
container_name: dev-ideenmelder-db
2024-02-18 13:37:18 +01: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