Help with environment vars

Hi, thanks for any help witht he problem below.

I am running windows 10 and have a little experience of C# creating winforms applications. I don’t know much Linux and I’m new to docker.

I am trying to make a local HDD available as a public cloud drive for myself and a few others. I decided to use OwnCloud and read the Owncloud docs re installing with docker.

I set up the docker-compose.yml file and a .env file but didn’t know what to call the .env file, as it wasn’t specified, so I gave it a random name, perhaps thinking that docker would pick the one and only .env file and run with it, but it seems that doesn’t work, since when I ran this command in Git CMD:

c:\Owncloud\owncloud-docker-server>docker-compose up -d

I got this output

time="2023-12-29T12:57:45Z" level=warning msg="The \"OWNCLOUD_DOMAIN\" variable is not set. Defaulting to a blank string."
time="2023-12-29T12:57:45Z" level=warning msg="The \"OWNCLOUD_TRUSTED_DOMAINS\" variable is not set. Defaulting to a blank string."
time="2023-12-29T12:57:45Z" level=warning msg="The \"ADMIN_USERNAME\" variable is not set. Defaulting to a blank string."
time="2023-12-29T12:57:45Z" level=warning msg="The \"ADMIN_PASSWORD\" variable is not set. Defaulting to a blank string."
time="2023-12-29T12:57:45Z" level=warning msg="The \"OWNCLOUD_VERSION\" variable is not set. Defaulting to a blank string."
time="2023-12-29T12:57:45Z" level=warning msg="The \"HTTP_PORT\" variable is not set. Defaulting to a blank string."
unable to get image 'owncloud/server:': Error response from daemon: invalid reference format

So obviously the .env file was not picked up

here’s a link to the Owncloud instructions I’ve been following, which specifies a yml compose file and the .env:

looks like the name of the .env file is .env

I’ll post back as things develop … :slight_smile: