Use docker extensions for env variables

This commit is contained in:
Sonny Bakker 2023-07-02 08:24:11 +02:00
parent 72f8426f72
commit 858c2c6eb3
3 changed files with 20 additions and 29 deletions

View file

@ -5,21 +5,11 @@ volumes:
static-files:
services:
db:
env_file: ./.production.env
celery:
env_file: ./.production.env
django:
env_file: ./.production.env
nginx:
image: nginx:1.23
depends_on:
django:
condition: service_healthy
env_file: ./.production.env
ports:
# Note that --env-file should be used to set these correctly
- "${NGINX_HTTP_PORT:-80}:80"