Created
April 17, 2017 13:06
-
-
Save WendellAdriel/385dc31539cde4c40491122da446b73f to your computer and use it in GitHub Desktop.
Docker Compose PHP - Nginx - Elasticsearch
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
version: "3" | |
services: | |
web: | |
image: nginx:latest | |
container_name: elastic-test-web | |
ports: | |
- "8080:80" | |
volumes: | |
- ./app:/app | |
- ./config/nginx.conf:/etc/nginx/nginx.conf | |
- ./logs/nginx-error.log:/var/log/nginx/error.log | |
- ./logs/nginx-access.log:/var/log/ngnix/access.log | |
links: | |
- php | |
php: | |
image: php:7-fpm | |
container_name: elastic-test-php | |
volumes: | |
- ./app:/app | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch:5.3.0 | |
container_name: elastic-test-elasticsearch | |
environment: | |
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" | |
- "xpack.security.enabled=false" | |
ports: | |
- "9200:9200" | |
volumes: | |
- ./data/elastic:/usr/share/elasticsearch/data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment