24 lines
770 B
YAML
24 lines
770 B
YAML
# {{ ansible_managed }}
|
|
|
|
version: '3'
|
|
services:
|
|
webfinger:
|
|
image: php:7.4-apache
|
|
environment:
|
|
- TZ=Europe/Paris
|
|
volumes:
|
|
- {{ docker_webfingerserver_data_dir }}/{{ docker_webfingerserver_service_id }}/webfinger:/var/www/html
|
|
restart: always
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.docker.network=traefik"
|
|
- "traefik.http.routers.{{ docker_webfingerserver_service_id }}.entrypoints=web"
|
|
- "traefik.http.routers.{{ docker_webfingerserver_service_id }}.rule=Host(`{{ docker_webfingerserver_local_domain }}`) && PathPrefix(`/.well-known/`)"
|
|
- "traefik.http.services.{{ docker_webfingerserver_service_id }}.loadbalancer.server.port=80"
|
|
networks:
|
|
- traefik
|
|
|
|
|
|
networks:
|
|
traefik:
|
|
external: true
|