Skip to content

Instantly share code, notes, and snippets.

@mustafaileri
Created June 30, 2017 15:16
Show Gist options
  • Save mustafaileri/97de0fdc651849be75ecb62f87fcfcc7 to your computer and use it in GitHub Desktop.
Save mustafaileri/97de0fdc651849be75ecb62f87fcfcc7 to your computer and use it in GitHub Desktop.
Docker Sync Sample Configuration
version: '2'
services:
php:
build: php7-fpm
volumes:
- code:/var/www/zearch:nocopy
ports:
- 9001:9001
nginx:
build: nginx
ports:
- 80:80
volumes_from:
- php
solr:
build: solr
volumes:
- solr_data:/opt/solr/server/solr/mycores:nocopy
- ./solr/config:/solr_config
rabbit:
image: "rabbitmq:3.6.10-management"
environment:
RABBITMQ_ERLANG_COOKIE: "SWQOKODSQALRPCLNMEQG"
RABBITMQ_DEFAULT_USER: "zingat"
RABBITMQ_DEFAULT_PASS: "zingat"
RABBITMQ_DEFAULT_VHOST: "/"
ports:
- "15672:15672"
- "5672:5672"
volumes:
code:
external: true
solr_data:
external: true
version: '2'
services:
php:
build: php7-fpm
volumes:
- ./zearch:/var/www/zearch
ports:
- 9001:9001
nginx:
build: nginx
ports:
- 80:80
volumes_from:
- php
solr:
build: solr
ports:
- "8983:8983"
volumes:
- ./data/solr:/opt/solr/server/solr/mycores
- ./solr/config:/solr_config
rabbit:
image: "rabbitmq:3.6.10-management"
version: '2'
syncs:
code:
sync_host_port: 10872
src: './zearch'
sync_strategy: 'unison'
sync_excludes: ['./zearch/logs', './zearch/cache', './idea']
solr_data:
sync_host_port: 10872
src: './data/solr'
sync_strategy: 'unison'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment