Apache2
webserver:
build:
context: ./bin/webserver
container_name: 'apache2'
restart: 'always'
volumes:
- /Docker/Webhost/apache2/www:/var/www/html
- /Docker/Webhost/apache2/config/php/php.ini:/usr/local/etc/php/php.ini
- /Docker/Webhost/apache2/config/vhosts:/etc/apache2/sites-enabled
- /Docker/Webhost/apache2/logs:/var/log/apache2
ports:
- 8888:80
networks:
web:
ipv4_address: 172.18.0.11
labels:
- "traefik.enable=true"
- "traefik.http.routers.apache-web.rule=Host(`kevinsloan.net`)"
- "traefik.http.routers.apache-web.entrypoints=web"
- "traefik.http.routers.apache-web.middlewares=redirect@file"
- "traefik.http.routers.apache-secured.rule=Host(`kevinsloan.net`)"
- "traefik.http.routers.apache-secured.entrypoints=web-secured"
- "traefik.http.routers.apache-secured.tls.certresolver=mytlschallenge"