Actualiser docker-compose.yml

This commit is contained in:
2025-09-14 10:50:25 +02:00
parent 45e2e22cf9
commit b2d9571ea2

View File

@@ -1,23 +1,23 @@
version: '3.8'
services: services:
codegenerator: codegenerator:
build: ./CodeGenerator build:
context: .
dockerfile: Dockerfile
container_name: codegenerator container_name: codegenerator
ports:
- "8000:8000"
environment:
- OLLAMA_URL=http://host.docker.internal:11434
volumes:
- /var/run/docker.sock:/var/run/docker.sock # Docker-in-Docker via host socket
restart: unless-stopped
open-webui:
image: ghcr.io/open-webui/open-webui:main
container_name: open-webui
ports:
- "3000:8080"
environment: environment:
- OLLAMA_BASE_URL=http://host.docker.internal:11434 - OLLAMA_BASE_URL=http://host.docker.internal:11434
- WEBUI_SECRET_KEY=change-me # changer pour la production - DOCKER_HOST=unix:///var/run/docker.sock
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- codegen-data:/app/data
- /tmp/docker-data:/tmp/docker-data
ports:
- "3000:3000"
extra_hosts:
- "host.docker.internal:host-gateway"
privileged: true
restart: unless-stopped restart: unless-stopped
volumes:
codegen-data: