Ollama Running on Railway: httpx.ConnectError: [Errno 111] Connection refused
diegodmb
PROOP

2 years ago

Hi! I'm having trouble running Ollama on Railway. Everything is working fine, except for Ollama.

This is my docker compose file:

version: '3.9'

services:

django:

build: .

restart: always

ports:

- "8080:8080"

volumes:

- .:/app

environment:

- OLLAMA_URL=ollama:11434

networks:

- net

ollama:

image: ollama/ollama:latest

hostname: ollama

container_name: ollama

ports:

- "11434:11434"

volumes:

- ollama_data:/app

networks:

- net

volumes:

ollama_data:

driver: local

networks:

net:

driver: bridge

3 Replies

2 years ago

Railway does not support docker-compose, so please explain where that comes into play with Railway?


diegodmb
PROOP

2 years ago

Ok. So this is the problem. Is deploying only the dockerfile from github. ¿Can you help me to find an alternative way to connect both services?

Thanks a lot for your answer


2 years ago

as Railway does not support docker-compose you would need to manually add the needed services to your railway project and set them up from there.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...