Skip to content

Commit

Permalink
Split build into separate docker-compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
R0Wi committed Jan 6, 2021
1 parent 5d5581f commit 4fddcaa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
7 changes: 7 additions & 0 deletions docker-compose-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: '2.2'
services:
elasticsearch:
build:
context: .
args:
- ELASTIC_IMAGE=elasticsearch:${DOCKER_TAG}
4 changes: 0 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ services:
# DOCKER_TAG will be provided by either the (docker hub) environment or inside the .env-file
image: r0wi/elasticsearch-nextcloud-docker:${DOCKER_TAG}
env_file: .env
build:
context: .
args:
- ELASTIC_IMAGE=elasticsearch:${DOCKER_TAG}
container_name: elasticsearch_nc
restart: always
environment:
Expand Down
2 changes: 1 addition & 1 deletion hooks/build
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# This file is used for docker hub automated builds
#

docker-compose build elasticsearch
docker-compose -f docker-compose.yml -f docker-compose-build.yml build elasticsearch

0 comments on commit 4fddcaa

Please sign in to comment.