question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support multiple commands on the seq-cli docker image

See original GitHub issue

I 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:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bronumskicommented, Aug 28, 2022

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.

0reactions
nblumhardtcommented, Oct 23, 2022

👍 thanks @bronumski

Read more comments on GitHub >

github_iconTop 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 >
datalust/seqcli - Docker Image
The Seq command-line client.
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found