From 9559a8c3a64a7132ec549912d0c8fab9860ecedf Mon Sep 17 00:00:00 2001 From: MisterMartin Date: Fri, 3 Jul 2020 11:43:53 -0600 Subject: [PATCH] Move docker-compose build config into a separate file. --- .gitignore | 2 +- docker-compose-build.yml | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 docker-compose-build.yml diff --git a/.gitignore b/.gitignore index 7d127c4e..69e3be02 100644 --- a/.gitignore +++ b/.gitignore @@ -54,7 +54,7 @@ chords_env.sh .env .env-* chords-*.yml -docker-compose-*.yml +docker-compose-2020*.yml chords_control-* chords.yml bin/*.tgz diff --git a/docker-compose-build.yml b/docker-compose-build.yml new file mode 100644 index 00000000..a954fdc6 --- /dev/null +++ b/docker-compose-build.yml @@ -0,0 +1,34 @@ +version: '3.3' + +# Use this in conjunction with docker-compose.yml to build CHORDS images. +# +# To use, both docker-compose files must be specified: +# +# docker-compose -f docker-compose.yml -f docker-compose-build.yml build +# or +# docker-compose -f docker-compose.yml -f docker-compose-build.yml build + +services: + app: + build: . + + nginx: + image: ncareol/chords_nginx:${DOCKER_TAG} + build: + context: . + dockerfile: ./bin/nginx/Dockerfile + + certbot: + build: + context: . + dockerfile: ./bin/certbot/Dockerfile + + kapacitor: + build: + context: ./bin/kapacitor + dockerfile: Dockerfile + + grafana: + build: + context: ./bin/grafana + dockerfile: Dockerfile