KazV2/dockers/jirafeau/docker-compose.yml

47 lines
1.7 KiB
YAML
Raw Normal View History

2024-06-03 18:43:35 +02:00
# jirafeauDir doit être déclaré dans .env qui pointe sur ../../config/docker.env
# car les variables déclarées dans env_file: ne sont pas encore connues dans volumes:
services:
jirafeau:
image: filekaz
build: .
container_name: ${jirafeauServName}
restart: always
networks:
- jirafeauNet
- postfixNet
external_links:
- ${smtpServName}:${smtpHost}
# ports:
# - 8081:80
env_file:
- ../../secret/env-${jirafeauServName}
volumes:
- ./config/jirafeau.conf:/etc/apache2/sites-available/000-default.conf
- fileData:${jirafeauDir}
- ./config/config.local.php:/var/jirafeau/lib/config.local.php
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
labels:
2024-12-13 17:07:55 +01:00
- "traefik.enable=true"
# pour ouvrir juste /f.php !!
# - "traefik.http.routers.${jirafeauServName}-download.rule=Host(`${fileHost}.${domain}`) && ( PathPrefix(`/f.php`) || PathPrefix(`/index.php`)"
# Le service est ouvert aux ip autorisées
# - "traefik.http.routers.${jirafeauServName}-admin.rule=Host(`${fileHost}.${domain}`)"
- "traefik.http.routers.${jirafeauServName}-admin.rule=Host(`${fileHost}.${domain}`) && ( PathPrefix(`/a-send.php`) || PathPrefix(`/s.php`) || PathPrefix(`/admin.php`) )"
- "traefik.http.routers.${jirafeauServName}-admin.middlewares=test-adminipallowlist@file"
- "traefik.http.routers.${jirafeauServName}.rule=Host(`${fileHost}.${domain}`) && ! ( PathPrefix(`/a-send.php`) || PathPrefix(`/s.php`) || PathPrefix(`/admin.php`) )"
- "traefik.docker.network=jirafeauNet"
2024-06-03 18:43:35 +02:00
volumes:
fileData:
config:
networks:
jirafeauNet:
external: true
name: jirafeauNet
postfixNet:
external: true
name: postfixNet