Files
docker-apache-php8/docker-compose.yml
christoph 4e6a76b1aa Reviewed
2023-02-18 18:50:11 +01:00

32 lines
754 B
YAML

version: "3"
services:
apache:
build:
dockerfile: Dockerfile
context: ./php81-apache
image: americus259/docker-php:8.1-apache
# container_name: myname
restart: always
networks:
- proxy
volumes:
- ./data/www:/var/www/html
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
# ports:
# - "80:80"
labels:
- traefik.enable=true
- traefik.http.routers.apache-php.rule=Host(`www.example.com`)
- traefik.http.routers.apache-php.tls.certResolver=le
- traefik.http.routers.apache-php.service=apache-php
- traefik.http.services.apache-php.loadbalancer.server.port=80
- traefik.docker.network=proxy
networks:
proxy:
external: true