Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docker-compose.yml #23

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 20 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ networks:

x-n8n: &service-n8n
image: n8nio/n8n:latest
networks: ['demo']
networks: ["demo"]
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- DB_TYPE=postgresdb
- DB_POSTGRESDB_HOST=postgres
Expand All @@ -25,7 +27,9 @@ x-n8n: &service-n8n
x-ollama: &service-ollama
image: ollama/ollama:latest
container_name: ollama
networks: ['demo']
networks: ["demo"]
extra_hosts:
- "host.docker.internal:host-gateway"
restart: unless-stopped
ports:
- 11434:11434
Expand All @@ -34,8 +38,10 @@ x-ollama: &service-ollama

x-init-ollama: &init-ollama
image: ollama/ollama:latest
networks: ['demo']
networks: ["demo"]
container_name: ollama-pull-llama
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ollama_storage:/root/.ollama
entrypoint: /bin/sh
Expand All @@ -46,7 +52,9 @@ x-init-ollama: &init-ollama
services:
postgres:
image: postgres:16-alpine
networks: ['demo']
networks: ["demo"]
extra_hosts:
- "host.docker.internal:host-gateway"
restart: unless-stopped
environment:
- POSTGRES_USER
Expand All @@ -55,7 +63,11 @@ services:
volumes:
- postgres_storage:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -h localhost -U ${POSTGRES_USER} -d ${POSTGRES_DB}']
test:
[
"CMD-SHELL",
"pg_isready -h localhost -U ${POSTGRES_USER} -d ${POSTGRES_DB}",
]
interval: 5s
timeout: 5s
retries: 10
Expand Down Expand Up @@ -92,7 +104,9 @@ services:
qdrant:
image: qdrant/qdrant
container_name: qdrant
networks: ['demo']
networks: ["demo"]
extra_hosts:
- "host.docker.internal:host-gateway"
restart: unless-stopped
ports:
- 6333:6333
Expand Down