Skip to content

Commit

Permalink
Fix Docker Volumes for Compose overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
cytopia committed Feb 28, 2019
1 parent d1cebcf commit 7539a16
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 14 deletions.
15 changes: 8 additions & 7 deletions compose/docker-compose.override.yml-all
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ services:
app_net:
ipv4_address: 172.16.238.210
volumes:
- ${HOST_PATH_RABBIT_DATADIR:-./data/rabbit}/${RABBIT_SERVER:-management}:/var/lib/rabbitmq
- devilbox-rabbit:/var/lib/rabbitmq
depends_on:
- bind
- php
Expand All @@ -76,7 +76,7 @@ services:
app_net:
ipv4_address: 172.16.238.220
volumes:
- data-solr:/opt/solr/server/solr/mycores
- devilbox-solr:/opt/solr/server/solr/mycores
entrypoint:
- docker-entrypoint.sh
- solr-precreate
Expand Down Expand Up @@ -150,7 +150,7 @@ services:
- TZ=${TIMEZONE:-UTC}
- discovery.type=single-node
volumes:
- data-elastic:/usr/share/elasticsearch/data
- devilbox-elastic:/usr/share/elasticsearch/data

logstash:
image: docker.elastic.co/logstash/logstash-oss:${ELK_SERVER:-6.6.1}
Expand All @@ -169,7 +169,7 @@ services:
- CONFIG_RELOAD_INTERVAL=300
- DB_HOST=DATABASE-SERVER
volumes:
- data-logstash:/var/lib/logstash
- devilbox-logstash:/var/lib/logstash
depends_on:
- elastic

Expand All @@ -192,6 +192,7 @@ services:
### Volumes
###
volumes:
data-solr:
data-elastic:
data-logstash:
devilbox-rabbit:
devilbox-solr:
devilbox-elastic:
devilbox-logstash:
8 changes: 4 additions & 4 deletions compose/docker-compose.override.yml-elk
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ services:
- TZ=${TIMEZONE:-UTC}
- discovery.type=single-node
volumes:
- data-elastic:/usr/share/elasticsearch/data
- devilbox-elastic:/usr/share/elasticsearch/data

logstash:
image: docker.elastic.co/logstash/logstash-oss:${ELK_SERVER:-6.6.1}
Expand All @@ -39,7 +39,7 @@ services:
- CONFIG_RELOAD_INTERVAL=300
- DB_HOST=DATABASE-SERVER
volumes:
- data-logstash:/var/lib/logstash
- devilbox-logstash:/var/lib/logstash
depends_on:
- elastic

Expand All @@ -58,5 +58,5 @@ services:
- elastic

volumes:
data-elastic:
data-logstash:
devilbox-elastic:
devilbox-logstash:
5 changes: 4 additions & 1 deletion compose/docker-compose.override.yml-rabbitmq
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ services:
app_net:
ipv4_address: 172.16.238.210
volumes:
- ${HOST_PATH_RABBIT_DATADIR:-./data/rabbit}/${RABBIT_SERVER:-management}:/var/lib/rabbitmq
- devilbox-rabbit:/var/lib/rabbitmq
depends_on:
- bind
- php
- httpd

volumes:
devilbox-rabbit:
4 changes: 2 additions & 2 deletions compose/docker-compose.override.yml-solr
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ services:
app_net:
ipv4_address: 172.16.238.220
volumes:
- data-solr:/opt/solr/server/solr/mycores
- devilbox-solr:/opt/solr/server/solr/mycores
entrypoint:
- docker-entrypoint.sh
- solr-precreate
Expand All @@ -26,4 +26,4 @@ services:
- httpd

volumes:
data-solr:
devilbox-solr:

0 comments on commit 7539a16

Please sign in to comment.