From 125ff68a16cd46a40afdb29f44cac6777816adc9 Mon Sep 17 00:00:00 2001 From: Eric McDaniel Date: Mon, 3 Mar 2025 11:03:33 -0500 Subject: [PATCH] chore: remove required attribute --- self-host/docker-compose.yml | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/self-host/docker-compose.yml b/self-host/docker-compose.yml index 46b6ff649..a33e16f97 100644 --- a/self-host/docker-compose.yml +++ b/self-host/docker-compose.yml @@ -14,9 +14,7 @@ services: condition: service_completed_successfully platform: linux/amd64 image: ghcr.io/pubpub/platform:latest - env_file: - - path: .env - required: true + env_file: .env environment: DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB} ports: @@ -32,9 +30,7 @@ services: condition: service_completed_successfully platform: linux/amd64 image: ghcr.io/pubpub/platform-jobs:latest - env_file: - - path: .env - required: true + env_file: .env environment: DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB} networks: @@ -46,9 +42,7 @@ services: db: condition: service_started image: ghcr.io/pubpub/platform-migrations:latest - env_file: - - path: .env - required: true + env_file: .env environment: DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB} # FIXME: remove this once it's merged into main @@ -64,9 +58,7 @@ services: db: image: postgres:15 restart: always - env_file: - - path: .env - required: true + env_file: .env volumes: - postgres-data:/var/lib/postgresql/data networks: @@ -100,9 +92,7 @@ services: # can be removed if you manually set up a storage service like s3 or minio instead minio: image: minio/minio:latest - env_file: - - path: .env - required: true + env_file: .env healthcheck: test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/ready"] interval: 1m30s @@ -125,9 +115,7 @@ services: minio: condition: service_healthy image: minio/mc:latest - env_file: - - path: .env - required: true + env_file: .env entrypoint: > /bin/sh -c ' /usr/bin/mc config host add myminio http://minio:9000 "$${MINIO_ROOT_USER}" "$${MINIO_ROOT_PASSWORD}";