Error with docker

imnoturban
HOBBY

7 months ago

Hello, im triying deploy a Kong Api Gateway usind a docker-compose, but gives me this error: =========================

Feb 21 18:35:21

Container failed to start

Feb 21 18:35:21

=========================

Feb 21 18:35:21

Feb 21 18:35:21

Failed to start deployment.

Feb 21 18:35:21

If this error persists, please reach out to the Railway team at https://help.railway.com.

Feb 21 18:35:21. The docker compose works ok in local (im sorry for my english)

Solved

6 Replies

imnoturban
HOBBY

7 months ago

version: '3.8'

services:
  kong-database:
    image: postgres:13
    container_name: kong-database
    restart: always
    networks:
      - kong-net
    environment:
      POSTGRES_USER: kong
      POSTGRES_DB: kong
      POSTGRES_PASSWORD: kongpass
    ports:
      - "5433:5433" # Cambiado a 5433 para evitar conflictos locales
    volumes:
      - kong_data:/var/lib/postgresql/data

  kong-migrations:
    image: kong:3.9.0
    depends_on:
      - kong-database
    networks:
      - kong-net
    environment:
      KONG_DATABASE: postgres
      KONG_PG_HOST: kong-database
      KONG_PG_USER: kong
      KONG_PG_PASSWORD: kongpass
    command: kong migrations bootstrap
    restart: on-failure

  kong-gateway:
    image: kong:3.9.0
    container_name: kong-gateway
    depends_on:
      - kong-migrations
    networks:
      - kong-net
    environment:
      KONG_DATABASE: postgres
      KONG_PG_HOST: kong-database
      KONG_PG_USER: kong
      KONG_PG_PASSWORD: kongpass
      KONG_PROXY_ACCESS_LOG: /dev/stdout
      KONG_ADMIN_ACCESS_LOG: /dev/stdout
      KONG_PROXY_ERROR_LOG: /dev/stderr
      KONG_ADMIN_ERROR_LOG: /dev/stderr
      KONG_ADMIN_LISTEN: 0.0.0.0:8001, 0.0.0.0:8444 ssl
      KONG_ADMIN_GUI_URL: http://localhost:8002
    ports:
      - "8000:8000"
      - "8443:8443"
      - "127.0.0.1:8001:8001"
      - "127.0.0.1:8002:8002"
      - "127.0.0.1:8444:8444"
    restart: always

networks:
  kong-net:
    driver: bridge

volumes:
  kong_data:

This is my docker-compose archive


unicodeveloper
PRO

7 months ago

Hi there, we don't support docker compose at the moment.


Status changed to Awaiting User Response Railway 7 months ago


gustavout22
FREE

5 months ago

I'm using docker compose with C# for microservices, how can I manage this case, also i'm using Yarp for API Gateway


Status changed to Awaiting Railway Response Railway 6 months ago


gustavout22

I'm using docker compose with C# for microservices, how can I manage this case, also i'm using Yarp for API Gateway

5 months ago

You would need to translate each docker-compose service into its own Railway service, Railway has a drag-n-drop feature where it can setup the initial config for you, just drag the docker-compose file into the empty project canvas


medim

You would need to translate each docker-compose service into its own Railway service, Railway has a drag-n-drop feature where it can setup the initial config for you, just drag the docker-compose file into the empty project canvas

gustavout22
FREE

5 months ago

thanks, I'm going to apply this


gustavout22

thanks, I'm going to apply this

5 months ago

If you find any issues please open a new help thread! I'm gonna close this one since it's a 2 month old post!
You can join the Discord server too! We can also help you there.


Status changed to Solved medim 6 months ago


Error with docker - Railway Help Station