Created
May 10, 2019 09:52
-
-
Save mrunkel/7ce5def596f1096c04b974b44a88fb8d to your computer and use it in GitHub Desktop.
Local PHP dev env
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.1' | |
services: | |
memcached: | |
image: memcached:alpine | |
container_name: kirby-memcached | |
mailhog: | |
image: mailhog/mailhog:latest | |
container_name: kirby-mailhog | |
ports: | |
- "8025:8025" | |
webserver: | |
image: nginx:alpine | |
container_name: kirby-webserver | |
working_dir: /application | |
volumes: | |
- .:/application | |
- ./docker/nginx/kirby.nginx:/etc/nginx/conf.d/default.conf | |
ports: | |
- "8080:80" | |
labels: | |
traefik.enable: true | |
traefik.kf.frontend.rule: 'Host:kf-local.pfdev.de' | |
traefik.kfx.frontend.rule: 'Host:kfx-local.pfdev.de' | |
traefik.port: 80 | |
traefik.frontend.passHostHeader: true | |
php-fpm: | |
build: docker/php-fpm | |
container_name: kirby-php-fpm | |
working_dir: /application | |
volumes: | |
- .:/application | |
- ./docker/php-fpm/php-ini-overrides.ini:/etc/php/7.2/fpm/conf.d/99-overrides.ini | |
traefik: | |
image: traefik:latest | |
restart: always | |
environment: | |
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY} | |
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_KEY} | |
AWS_HOSTED_ZONE_ID: ${AWS_ZONE_ID} | |
AWS_REGION: "eu-central-1" | |
ports: | |
- 80:80 | |
- 443:443 | |
- 8082:8082 | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
- ./docker/traefik.toml:/traefik.toml | |
- ./docker/acme.json:/acme.json | |
container_name: traefik |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment