From 55853652349c4b4bf3ca4398f6ffe78262fbdb0b Mon Sep 17 00:00:00 2001 From: AlexInCube Date: Tue, 9 Apr 2024 23:34:27 +0300 Subject: [PATCH] .env files now is optional for docker-compose.yml --- docker-compose.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index db30f81..f876b90 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,12 +1,14 @@ -version: "3" +version: '3.2' services: mongo: container_name: mongo image: bitnami/mongodb:latest restart: always env_file: - - ./.env.production - - ./.env.development + - path: ./.env.production + required: false + - path: ./.env.development + required: false volumes: - ./data:/data/db ports: @@ -23,8 +25,10 @@ services: #command: sleep infinity build: . env_file: - - ./.env.production - - ./.env.development + - path: ./.env.production + required: false + - path: ./.env.development + required: false volumes: - type: bind source: ./yt-cookies.json