Webserver zu Netzwerk webproxy hinzugefügt und Netzwerk backend_grav

This commit is contained in:
bmen 2019-09-16 17:47:23 +02:00
parent d102463668
commit 66439a6b31
1 changed files with 25 additions and 16 deletions

View File

@ -4,21 +4,30 @@
version: "3.1" version: "3.1"
services: services:
webserver: networks:
image: nginx:alpine webproxy:
container_name: grav-webserver external: true
working_dir: /application backend_grav:
volumes:
- .:/application
- ./phpdocker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- "8888:80"
php-fpm: webserver:
build: phpdocker/php-fpm image: nginx:alpine
container_name: grav-php-fpm container_name: grav-cms
working_dir: /application working_dir: /application
volumes: volumes:
- .:/application - /opt/appdata/grav:/application
- ./phpdocker/php-fpm/php-ini-overrides.ini:/etc/php/7.3/fpm/conf.d/99-overrides.ini - ./phpdocker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- "3001:80"
networks:
- webproxy
- backend_grav
php-fpm:
build: phpdocker/php-fpm
container_name: grav-cms-php-fpm
working_dir: /application
networks:
- backend_grav
volumes:
- /opt/appdata/grav:/application
- ./phpdocker/php-fpm/php-ini-overrides.ini:/etc/php/7.3/fpm/conf.d/99-overrides.ini