From 810687f849f6426efd3c9949fb0843298e839611 Mon Sep 17 00:00:00 2001 From: Markus Matoni <markus.matoni@gwdg.de> Date: Thu, 13 Feb 2025 18:23:05 +0100 Subject: [PATCH] fix: add env file to docker compose command --- README.md | 2 +- constrainify.service | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9922b4c..91c2298 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ Constrainify is the name of the entire application. It combines multiple compone > **Step 3** Use Docker to run the application: ```bash -docker compose up +docker compose --env-file .env up ``` > **Step 4** Go to http://localhost:8000 on any browser and enjoy Constrainify! diff --git a/constrainify.service b/constrainify.service index 6209aae..839efbc 100644 --- a/constrainify.service +++ b/constrainify.service @@ -7,7 +7,7 @@ Requires=docker.service Type=oneshot WorkingDirectory=/opt/constrainify ExecStartPre=git pull -ExecStart=docker compose up -d +ExecStart=docker compose --env-file .env up -d ExecStop=docker compose down RemainAfterExit=yes -- GitLab