Last active
August 29, 2019 03:54
-
-
Save horaciod/93f2bbbfdd80dd09056c07c7cf6c4375 to your computer and use it in GitHub Desktop.
docker compose para php 7.0 postgresql 10 pgadmin y nginx
This file contains hidden or 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
| ############################################################################### | |
| # Genera un entorno de desarrollo con | |
| # PHP 7.0 nginx pgadmin4 postgresql.10 todo con volumenes especiales para el | |
| # pgdadmin4 postgresql y archivos de la aplicación | |
| # https://github.com/thaJeztah/pgadmin4-docker | |
| # https://phpdocker.io/generator | |
| ############################################################################### | |
| version: "3.1" | |
| services: | |
| db: | |
| image: postgres:10 | |
| container_name: ideas-db | |
| restart: always | |
| volumes: | |
| - /datos/webs/filo/pgdb:/var/lib/postgresql/data | |
| environment: | |
| POSTGRES_PASSWORD: ${password} | |
| pgadmin: | |
| image: dpage/pgadmin4 | |
| container_name: ideas-pgadmin | |
| restart: always | |
| ports: | |
| - "8101:80" | |
| environment: | |
| PGADMIN_DEFAULT_EMAIL: ${email} | |
| PGADMIN_DEFAULT_PASSWORD: ${password} | |
| volumes: | |
| - /datos/webs/filo/pgadmin:/var/lib/pgadmin | |
| webserver: | |
| image: nginx:alpine | |
| container_name: ideas-webserver | |
| working_dir: /application | |
| volumes: | |
| - /datos/webs/filo:/application/public | |
| - ./phpdocker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf | |
| ports: | |
| - "8100:80" | |
| php-fpm: | |
| build: phpdocker/php-fpm | |
| container_name: ideas-php-fpm | |
| working_dir: /application | |
| volumes: | |
| - /datos/webs/filo:/application/public | |
| - ./phpdocker/php-fpm/php-ini-overrides.ini:/etc/php/7.0/fpm/conf.d/99-overrides.ini |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment