Skip to content
Snippets Groups Projects
Commit be1b6061 authored by Thomas Juerges's avatar Thomas Juerges
Browse files

Implicitly add .env file to compose

parent c4ea31f4
Branches
Tags
1 merge request!21Small refactoring of the Makefile
......@@ -2,8 +2,9 @@
MAKEPATH := $(abspath $(lastword $(MAKEFILE_LIST)))
BASEDIR := $(notdir $(patsubst %/,%,$(dir $(MAKEPATH))))
DOCKER_COMPOSE_ENV_FILE := $(abspath .env)
COMPOSE_FILES := $(wildcard *.yml)
COMPOSE_FILE_ARGS := $(foreach yml,$(COMPOSE_FILES),-f $(yml))
COMPOSE_FILE_ARGS := --env-file $(DOCKER_COMPOSE_ENV_FILE) $(foreach yml,$(COMPOSE_FILES),-f $(yml))
ATTACH_COMPOSE_FILE_ARGS := $(foreach yml,$(filter-out tango.yml,$(COMPOSE_FILES)),-f $(yml))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment