Support multiple commands on the seq-cli docker image
See original GitHub issueI have a docker compose which sets up the seq web image and then sets up the api key but I can only run one command. I would also like to be able to setup some default signals. Currently I do this:
services:
seq-cli:
container_name: seq-cli
image: datalust/seqcli:latest
command: apikey create --title='default' --token='12345678901234567890' --server=http://seq-web
depends_on:
- seq-web
restart: on-failure
networks:
- local-infrastructure
seq-web:
container_name: seq-web
image: datalust/seq:latest
environment:
ACCEPT_EULA: 'Y'
restart: unless-stopped
networks:
- local-infrastructure
ports:
- '5341:5341'
- '5342:80'
Without duplicating a bunch of things I cannot run multiple commands. It would be nice to be able to do this:
seq-cli:
container_name: seq-cli
image: datalust/seqcli:latest
command:
- apikey create --title='default' --token='12345678901234567890' --server=http://seq-web
- signal create ...
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
datalust/seqcli: The Seq command-line client. Administer, ...
Supports logging ( seqcli log ), searching ( search ), tailing ( tail ), querying ( query ) and JSON or plain-text log...
Read more >Need to loop command when container starts - docker
It was a syntax error, now the loop works; its shows twice the "service is unavailable" message, and after that it shows the...
Read more >Getting Started with Docker - Seq Documentation
--name seq to be able to run commands using the container name, e.g. docker stop seq; -d run in daemon mode (in the...
Read more >Running Seq in Linux containers on Windows using Docker ...
Learn how to run Seq on Docker in a single container. ... The version of Seq running in the container can be displayed...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @nblumhardt for the work around, should work fine and I will give it ago when back at the office. If you happen to be making changes to the docker file in the future it would be great if this could be supported in order to eliminate the need for the extra file.
👍 thanks @bronumski