-
Notifications
You must be signed in to change notification settings - Fork 26
Closed
Description
Documentation mentions being able to use env vars in the form SEQCLI_<setting path>, with the example: SEQCLI_CONNECTION_SERVERURL
But I wasn't able to get it working.
Steps to reproduce:
Create a docker compose file with the contents:
version: '3.7'
services:
seq:
container_name: local-seq
image: datalust/seq:latest
restart: unless-stopped
ports:
- 81:80
- 5341:5341
environment:
ACCEPT_EULA: 'Y'
networks:
- my_default
networks:
my_default:
name: my_defaultStart the Seq container:
docker compose up -d --quiet-pullUse the SeqCLI image to connect to it (using --server):
docker run --rm --network=my_default datalust/seqcli:latest feed list --server=http://local-seq
# nugetfeed-1 nuget.orgUse the SeqCLI image to connect to it (using env var SEQCLI_CONNECTION_SERVERURL):
docker run --rm --network=my_default -e SEQCLI_CONNECTION_SERVERURL=http://local-seq datalust/seqcli:latest feed list
# The command failed: Connection refused (localhost:5341) Connection refusedConfirm that env var SEQCLI_CONNECTION_SERVERURL gets passed to the container:
docker run --rm -it --entrypoint bash -e SEQCLI_CONNECTION_SERVERURL=http://local-seq --network=my_default datalust/seqcli:latest
# echo $SEQCLI_CONNECTION_SERVERURL
## http://local-seqReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels