KazV2/dockers/paheko/docker-compose.yml

39 lines
1.0 KiB
YAML
Raw Normal View History

2024-06-03 18:43:35 +02:00
version: '3.5'
services:
paheko:
image: pahekokaz
build: .
container_name: ${pahekoServName}
volumes:
- ./config/paheko.conf:/etc/apache2/sites-available/000-default.conf
- ./config/config.local.php:/usr/share/paheko/config.local.php
- ./config/factory_cron.sh:/usr/share/paheko/factory_cron.sh
# - ./config/cron.php:/usr/share/paheko/scripts/cron.php
- assoUsers:/usr/share/paheko/users
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
# ports:
# - 8086:80
networks:
- pahekoNet
- postfixNet
external_links:
- ${smtpServName}:${smtpHost}.${domain}
labels:
- "traefik.enable=true"
- "traefik.frontend.rule=HostRegexp:{host:[a-zA-Z0-9_-]+-${pahekoHost}}.${domain}"
- "traefik.http.routers.${pahekoServName}.rule=HostRegexp(`{host:[a-zA-Z0-9_-]+-${pahekoHost}}.${domain}`)"
volumes:
assoUsers:
networks:
pahekoNet:
external: true
name: pahekoNet
postfixNet:
external: true
name: postfixNet