From 35c5bc2da4fa943fb5a73e07a90aa84885473d6d Mon Sep 17 00:00:00 2001 From: Tom Naessens Date: Sun, 9 Jun 2024 19:36:29 +0200 Subject: [PATCH] Pass .env file to docker-compose services --- docker-compose.prod.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index c48b10e..7b16454 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -22,6 +22,8 @@ services: SECRET_AUTH_USERNAME: admin SECRET_AUTH_PASSWORD: admin-password RAILS_SERVE_STATIC_FILES: 1 + env_file: + - .env sidekiq: image: "ghcr.io/zeuswpi/tap:latest" @@ -34,6 +36,8 @@ services: DATABASE_URL: postgresql://postgres:password@db/tap REDIS_URL: redis://redis:6379 entrypoint: bundle exec sidekiq + env_file: + - .env redis: image: redis:7-alpine