a year 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:
- OLLAMAURL=ollama:11434 networks: - net ollama: image: ollama/ollama:latest hostname: ollama containername: ollama
ports:
- "11434:11434"
volumes:
- ollama_data:/app
networks:
- net
volumes:
ollama_data:
driver: local
networks:
net:
driver: bridge
3 Replies
a year ago
Railway does not support docker-compose, so please explain where that comes into play with Railway?
a year 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
a year 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.