From 8be68590c366479acb1a227e848f45c829919a33 Mon Sep 17 00:00:00 2001 From: sonny Date: Sun, 12 Feb 2023 13:41:27 +0100 Subject: [PATCH] Set `env_file` explicitly & remove `restarted` option `restarted` seems to cause issues as the relay service could not talk to the web service --- tasks/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index db4166a..f8df4bc 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -52,5 +52,6 @@ - name: start sentry docker_compose: project_src: '{{ app_dir }}' - build: false - restarted: true + # Note: docker-compose versions <=1.28 load the env file from the current working + # directory of the docker-compose command rather than project_src. + env_file: '{{ app_dir }}/.env'