diff --git a/Dockerfile b/Dockerfile index 92645be..db01327 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,13 +4,13 @@ RUN apk add --no-cache git docker-cli docker-cli-compose && git config --global WORKDIR /app -COPY requirements.txt +COPY requirements.txt .. RUN pip install --no-cache-dir -r requirements.txt -COPY watcher.py +COPY app/watcher.py .. -ENV PYTHONUMBUDDERED = 1 +ENV PYTHONUMBUFFERED = 1 CMD ["python", "/app/watcher.py"] diff --git a/docker-compose.yml b/docker-compose.yml index aeef3d6..97a5b35 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,7 +7,8 @@ services: CHECK_INTERVAL: 30 STACKS_DIR: /opt/gitops CONFIG_PATH: /config/repos.yml + env_file: .env volumes: - /var/run/docker.sock:/var/run/docker.sock - - ./repos.yml/:config/repos.yml:ro + - ./repos.yml:config/repos.yml:ro - /opt/gitops:/opt/gitops