mammo0 / docker-arkime

A Docker container for Arkime based on Ubuntu
MIT License
32 stars 18 forks source link

docker-compose - invalid string #23

Closed angry-bender closed 2 months ago

angry-bender commented 2 months ago

Issue When using the docker compose and env files from a git clone of this repo, docker compose up -d returns the following error:

ERROR: The Compose file './docker-compose.yml' is invalid because:
services.arkime.env_file contains {"path": "./env/arkime-compose.env"}, which is an invalid type, it should be a string

Expected Behavior the docker compose file would read the env file (Noting no customisations have been made)

Workaround Removing the yaml sections for services.arkime.env_file completely allows the compose to work, but no custom env vars would work. (Unless specified in the compose file)

angry-bender commented 2 months ago

Found the issue, this version of docker seems to want a full path, could be worth adding to the README

mammo0 commented 2 months ago

Hello and sorry for the late reply...

What Docker Compose Version did you use? According to the docs the required attribute requires at least version 2.24.0 (https://docs.docker.com/reference/compose-file/services/#env_file)

angry-bender commented 2 months ago

All good, thanks for the reminder. Your bang on, I was using a old docker-compose version.