Skip to content

Commit

Permalink
.env files now is optional for docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexInCube committed Apr 9, 2024
1 parent 74a3e4b commit 5585365
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 5585365

Please sign in to comment.