Skip to content

SQLSTATE[HY000] [2002] Connection refused error when running Shlink CLI #2372

Answered by acelaya
Rol-a asked this question in Help wanted
Discussion options

You must be logged in to vote

@Rol-a the problem is that you forgot to link the Shlink and the database containers:

services:
  shlink:
    image: shlinkio/shlink:stable
    restart: always
    container_name: shlink-backend
    depends_on:
      - database
+   links:
+     - database
     # ...

  database:
     # ...

  shlink-web-client:
     # ...

With that it works.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@acelaya
Comment options

@acelaya
Comment options

Answer selected by acelaya
@Rol-a
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants