From 050298873913e6032e0c2fa54b93e3cae722ece2 Mon Sep 17 00:00:00 2001 From: saint Date: Tue, 27 Feb 2024 16:57:26 +0100 Subject: [PATCH 1/2] added volume for celery --- compose.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compose.yaml b/compose.yaml index e8c66574..4e0b63e8 100644 --- a/compose.yaml +++ b/compose.yaml @@ -17,6 +17,8 @@ services: env_file: - ./.env.docker entrypoint: ./entrypoint_celery.sh + volumes: + - ./media/:/app/app/static/media/ web: build: context: . @@ -27,7 +29,6 @@ services: env_file: - ./.env.docker volumes: - - ./.env:/app/.env - ./.gunicorn.conf.py:/app/gunicorn.conf.py - ./media/:/app/app/static/media/ ports: From 61ae07701174ed9d1feb35dea19ce11cd23707a1 Mon Sep 17 00:00:00 2001 From: saint Date: Tue, 27 Feb 2024 16:57:38 +0100 Subject: [PATCH 2/2] this env variable is very handly for docker containers --- env.sample | 2 ++ 1 file changed, 2 insertions(+) diff --git a/env.sample b/env.sample index 49badda2..2c7b4c87 100644 --- a/env.sample +++ b/env.sample @@ -14,3 +14,5 @@ CACHE_REDIS_URL='redis://localhost:6379/1' BOUNCE_HOST='' BOUNCE_USERNAME='' BOUNCE_PASSWORD='' + +FLASK_APP=pyfedi.py