Skip to content

Instantly share code, notes, and snippets.

@loranger
Last active April 10, 2020 17:10
Show Gist options
  • Save loranger/cbe7bb183b7c6425a69a066b1025929a to your computer and use it in GitHub Desktop.
Save loranger/cbe7bb183b7c6425a69a066b1025929a to your computer and use it in GitHub Desktop.
version: '2'
services:
dnsmasq:
image: andyshinn/dnsmasq:latest
restart: always
ports:
- "53535:53/tcp"
- "53535:53/udp"
cap_add:
- NET_ADMIN
command:
- "--address=/dev/127.0.0.1"
nginx:
image: nginx:latest
restart: always
ports:
- "80:80"
volumes:
- ./docker/settings/nginx:/etc/nginx/sites-enabled
- ./docker/settings/nginx/default:/etc/nginx/conf.d/default.conf
- ./:/var/web
- ./storage:/var/web/storage:rw
- ./docker/logs/nginx:/var/log/nginx
env_file: ./.env
links:
- php
VIRTUAL_HOST: monprojet.dev
php:
build:
context: ./docker
dockerfile: buildfiles/Dockerfile.php-fpm
restart: always
volumes:
- ./:/var/web
- ./storage:/var/web/storage:rw
- ./docker/settings/php/php.ini:/usr/local/etc/php/php.ini
- ./docker/settings/php/php-fpm.conf:/usr/local/etc/php-fpm.d/www.conf
working_dir: /var/web
env_file: ./.env
environment:
LANG: fr_FR.UTF-8
LANGUAGE: fr_FR:fr
LC_ALL: fr_FR.UTF-8
DB_HOST: mysql
links:
- mysql:mysql
- beanstalkd:beanstalkd
mysql:
image: mysql:latest
restart: always
ports:
- "3306:3306"
volumes_from:
- data
env_file: ./.env
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: homestead
MYSQL_USER: laravel
MYSQL_PASSWORD: local
redis:
image: redis:latest
ports:
- "6379:6379"
volumes_from:
- data
beanstalkd:
image: schickling/beanstalkd:latest
restart: always
ports:
- "11300:11300"
elasticsearch:
build: ./elasticsearch
volumes_from:
- data
ports:
- "9200:9200"
- "9300:9300"
data:
image: cogniteev/echo
command: echo 'Data Container'
volumes:
- /var/lib/mysql
- /var/lib/redis
- /usr/share/elasticsearch/data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment