Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- # Application source
- app_source:
- image: busybox
- volumes:
- - ./src:/var/www/site
- - /var/log/php-fpm
- # Web server/proxy
- nginx:
- image: tattoodo/nginx:dev
- links:
- - php
- ports:
- - 8080:80
- volumes_from:
- - app_source
- volumes:
- - ./env/files/nginx/dev.nginx.conf:/etc/nginx/nginx.conf
- # PHP runtime
- php:
- tty: true
- environment:
- # App envs
- - APP_DEBUG=True
- - APP_ENV=local
- - APP_ENVIRONMENT=local
- - APP_FALLBACK_LOCALE=en
- image: tattoodo/php7:7.1-fpm-dev
- links:
- - redis
- - mariadb
- - elasticsearch
- volumes:
- - ./env/files/php/dev.php.ini:/usr/local/etc/php/conf.d/tattoodo.ini
- - ./env/files/php/dev.www.conf:/usr/local/etc/php-fpm.d/wwwtattoodo.conf
- volumes_from:
- - app_source
- # Database
- mariadb:
- image: mariadb:10.0.22
- environment:
- MYSQL_ROOT_PASSWORD:
- MYSQL_DATABASE: bapi
- MYSQL_USER: dbm
- MYSQL_PASSWORD:
- ports:
- - 3300:3306
- #volumes:
- #- ./init/db:/docker-entrypoint-initdb.d
- # Local cache / queue
- redis:
- image: redis:3.2-alpine
- # Elastic search
- elasticsearch:
- image: tattoodo/elasticsearch5:latest
- ports:
- - 9212:9200
- volumes:
- - ./env/files/elasticsearch_dev.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- environment:
- - AWS_ACCESS_KEY_ID
- - AWS_SECRET_ACCESS_KEY
- kibana:
- image: kibana:5.3
- ports:
- - 5602:5601
- links:
- - elasticsearch
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement