Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on multiple env files on docker compose #454

Open
2 tasks done
clabnet opened this issue Mar 18, 2024 · 3 comments
Open
2 tasks done

Error on multiple env files on docker compose #454

clabnet opened this issue Mar 18, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@clabnet
Copy link

clabnet commented Mar 18, 2024

⚠️ Please verify that this bug has NOT been reported before.

  • I checked and didn't find similar issue

🛡️ Security Policy

Description

On compose file we use multiple .env files, one required, one optional.
Starting the container from docker desktop is ok, but starting from Dockge I have this error:

validating /opt/stacks/database/docker-compose.yml: services.mongodb.env_file.0 must be a string

I have tried to add " or ' into path env file name but it not work in any mode.

👟 Reproduction steps

version: "3.9"
services:
  mongodb:
    image: mongo
    container_name: mongodb
    restart: unless-stopped
    env_file:
      - path: ./.env.default
        required: true
      - path: ./.env.override
        required: false
    ports:
      - 27017:27017
    volumes:
      - mongoData:/data/db

👀 Expected behavior

A normal start of the container

😓 Actual Behavior

Error during start of container

Dockge Version

1.4.2

💻 Operating System and Arch

Windows 11 x64

🌐 Browser

Versione 122.0.6261.129 (Build ufficiale) (a 64 bit)

🐋 Docker Version

Docker desktop 4.28.0

🟩 NodeJS Version

20.11.0

📝 Relevant log output

No response

@clabnet clabnet added the bug Something isn't working label Mar 18, 2024
@clabnet
Copy link
Author

clabnet commented Mar 18, 2024

image

@clabnet
Copy link
Author

clabnet commented Mar 18, 2024

image

@clabnet
Copy link
Author

clabnet commented Mar 18, 2024

This link can be useful : docker/compose#9181

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant