diff --git a/compose/openwebui.yml b/test/compose/ai/docker-compose.yml similarity index 63% rename from compose/openwebui.yml rename to test/compose/ai/docker-compose.yml index 0458740..08e5c3a 100644 --- a/compose/openwebui.yml +++ b/test/compose/ai/docker-compose.yml @@ -1,3 +1,4 @@ +--- volumes: open_webui: {} chromadb: {} @@ -5,7 +6,7 @@ volumes: services: open_webui: - image: ghcr.io/open-webui/open-webui:${WEBUI_DOCKER_TAG:-main} + image: ghcr.io/open-webui/open-webui:main depends_on: - chromadb - ollama @@ -15,19 +16,18 @@ services: - CHROMA_TENANT=default_tenant - VECTOR_DB=chroma - DATA_DIR=/app/backend/data - - DOMAIN=${DOMAIN} - - PORT=${OPEN_WEBUI_PORT:-8080} - - WEBUI_URL=http://localhost:${OPEN_WEBUI_PORT:-8080} - - ENABLE_OLLAMA_API=${ENABLE_OLLAMA_API:-true} - - CORS_ALLOW_ORIGIN="*" + - PORT=8080 + - WEBUI_URL=http://localhost:8080 + - ENABLE_OLLAMA_API=true + # - CORS_ALLOW_ORIGIN="*" - OLLAMA_BASE_URLS=http://ollama:11434 - RAG_EMBEDDING_ENGINE=ollama - RAG_EMBEDDING_MODEL=nomic-embed-text-v1.5 - RAG_EMBEDDING_MODEL_TRUST_REMOTE_CODE="True" volumes: - open_webui:/app/backend/data - expose: - - ${OPEN_WEBUI_PORT:-8080} + ports: + - "8080:8080" chromadb: hostname: chromadb @@ -35,16 +35,23 @@ services: volumes: - chromadb:/chroma/chroma environment: - - IS_PERSISTENT=TRUE - - ALLOW_RESET=TRUE + - IS_PERSISTENT=true + - ALLOW_RESET=true - PERSIST_DIRECTORY=/chroma/chroma - expose: - - 8000 + ports: + - "8000:8000" ollama: image: ollama/ollama:latest hostname: ollama volumes: - ollama:/root/.ollama - expose: - - 11434 + ports: + - "11434:11434" + deploy: + resources: + reservations: + devices: + - driver: nvidia + count: all + capabilities: [gpu] diff --git a/test/compose/nvidia-smi/docker-compose.yaml b/test/compose/nvidia-smi/docker-compose.yaml new file mode 100644 index 0000000..f61de85 --- /dev/null +++ b/test/compose/nvidia-smi/docker-compose.yaml @@ -0,0 +1,11 @@ +services: + test: + image: nvidia/cuda:12.3.1-base-ubuntu20.04 + command: nvidia-smi + deploy: + resources: + reservations: + devices: + - driver: nvidia + count: 1 + capabilities: [gpu] \ No newline at end of file diff --git a/test/compose/openwebui/docker-compose.yml b/test/compose/openwebui/docker-compose.yml new file mode 100644 index 0000000..bde6680 --- /dev/null +++ b/test/compose/openwebui/docker-compose.yml @@ -0,0 +1,10 @@ +--- +services: + openwebui: + image: ghcr.io/open-webui/open-webui:main + ports: + - "3000:8080" + volumes: + - open-webui:/app/backend/data +volumes: + open-webui: \ No newline at end of file diff --git a/test/compose/wordpress/docker-compose.yml b/test/compose/wordpress/docker-compose.yml new file mode 100644 index 0000000..e144712 --- /dev/null +++ b/test/compose/wordpress/docker-compose.yml @@ -0,0 +1,23 @@ +--- +volumes: + db_data: +services: + wordpress: + image: docker.io/library/wordpress:latest + ports: + - 8080:80 + environment: + - WORDPRESS_DB_HOST=db + - WORDPRESS_DB_USER=wordpress + - WORDPRESS_DB_PASSWORD=password + - WORDPRESS_DB_NAME=wordpress + db: + image: docker.io/library/mariadb:10.6.4-focal + command: '--default-authentication-plugin=mysql_native_password' + volumes: + - db_data:/var/lib/mysql + environment: + - MYSQL_ROOT_PASSWORD=somewordpress + - MYSQL_DATABASE=wordpress + - MYSQL_USER=wordpress + - MYSQL_PASSWORD=password