Commit 2c60b355 authored by Wade's avatar Wade

add docker compose

parent 8c0bff12
version: '3.9'
services:
agentchat:
container_name: "agentchat"
build:
context: . # Build context is the current directory
dockerfile: Dockerfile # Dockerfile for agentchat
volumes:
- /var/log:/var/log
environment:
- GEMINI_API_KEY=${GEMINI_API_KEY} # Reference variable from .env
ports:
- "8000:8000"
entrypoint: /app/myapp
docker-host:
image: qoomon/docker-host
cap_add: ['NET_ADMIN', 'NET_RAW']
mem_limit: 8M
restart: on-failure
# etcd:
# container_name: milvus-etcd
# image: quay.io/coreos/etcd:v3.5.18
# environment:
# - ETCD_AUTO_COMPACTION_MODE=revision
# - ETCD_AUTO_COMPACTION_RETENTION=1000
# - ETCD_QUOTA_BACKEND_BYTES=4294967296
# - ETCD_SNAPSHOT_COUNT=50000
# volumes:
# - ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/etcd:/etcd
# command: etcd -advertise-client-urls=http://etcd:2379 -listen-client-urls http://0.0.0.0:2379 --data-dir /etcd
# healthcheck:
# test: ["CMD", "etcdctl", "endpoint", "health"]
# interval: 30s
# timeout: 20s
# retries: 3
# minio:
# container_name: milvus-minio
# image: minio/minio:RELEASE.2023-03-20T20-16-18Z
# environment:
# MINIO_ACCESS_KEY: minioadmin
# MINIO_SECRET_KEY: minioadmin
# ports:
# - "9001:9001"
# - "9000:9000"
# volumes:
# - ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/minio:/minio_data
# command: minio server /minio_data --console-address ":9001"
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
# interval: 30s
# timeout: 20s
# retries: 3
# standalone:
# container_name: milvus-standalone
# image: milvusdb/milvus:v2.5.10
# command: ["milvus", "run", "standalone"]
# security_opt:
# - seccomp:unconfined
# environment:
# ETCD_ENDPOINTS: etcd:2379
# MINIO_ADDRESS: minio:9000
# volumes:
# - ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/milvus:/var/lib/milvus
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost:9091/healthz"]
# interval: 30s
# start_period: 90s
# timeout: 20s
# retries: 3
# ports:
# - "19530:19530"
# - "9091:9091"
# depends_on:
# - "etcd"
# - "minio"
# db:
# image: mysql/mysql-server
# environment:
# MYSQL_USER: 'user'
# MYSQL_PASSWORD: 'password'
# MYSQL_ROOT_PASSWORD: 'aa123456'
# ports:
# - 3306:3306
# volumes:
# - dbgpt-myql-db:/var/lib/mysql
# - ./docker/examples/my.cnf:/etc/my.cnf
# - ./docker/examples/sqls:/docker-entrypoint-initdb.d
# - ./assets/schema/dbgpt.sql:/docker-entrypoint-initdb.d/dbgpt.sql
# restart: unless-stopped
# webserver:
# image: eosphorosai/dbgpt-openai:latest
# command: dbgpt start webserver --config /app/configs/dbgpt-graphrag.toml
# environment:
# - SILICONFLOW_API_KEY=${SILICONFLOW_API_KEY}
# - MYSQL_PASSWORD=aa123456
# - MYSQL_HOST=db
# - MYSQL_PORT=3306
# - MYSQL_DATABASE=dbgpt
# - MYSQL_USER=root
# - OPENAI_API_KEY=sk-UIpD9DohtE0Ok4wtFdC21668Dc3241629e8aA05d5dAeFdA1
# volumes:
# - ./configs:/app/configs
# - /data:/data
# # May be you can mount your models to container
# - /data/models:/app/models
# - dbgpt-data:/app/pilot/data
# - dbgpt-message:/app/pilot/message
# depends_on:
# - db
# - tugraph
# ports:
# - 5670:5670/tcp
# # webserver may be failed, it must wait all sqls in /docker-entrypoint-initdb.d execute finish.
# restart: unless-stopped
# networks:
# - dbgptnet
# ipc: host
# tugraph:
# image: tugraph/tugraph-runtime-centos7:4.5.1
# command: lgraph_server -d run --enable_plugin true
# ports:
# - 7070:7070
# - 7687:7687
# - 9090:9090
# container_name: tugraph_demo
# restart: unless-stopped
# volumes:
# dbgpt-myql-db:
# dbgpt-data:
# dbgpt-message:
# dbgpt-alembic-versions:
version: '3.5'
services:
etcd:
container_name: milvus-etcd
image: quay.io/coreos/etcd:v3.5.18
environment:
- ETCD_AUTO_COMPACTION_MODE=revision
- ETCD_AUTO_COMPACTION_RETENTION=1000
- ETCD_QUOTA_BACKEND_BYTES=4294967296
- ETCD_SNAPSHOT_COUNT=50000
volumes:
- ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/etcd:/etcd
command: etcd -advertise-client-urls=http://etcd:2379 -listen-client-urls http://0.0.0.0:2379 --data-dir /etcd
healthcheck:
test: ["CMD", "etcdctl", "endpoint", "health"]
interval: 30s
timeout: 20s
retries: 3
minio:
container_name: milvus-minio
image: minio/minio:RELEASE.2023-03-20T20-16-18Z
environment:
MINIO_ACCESS_KEY: minioadmin
MINIO_SECRET_KEY: minioadmin
ports:
- "9001:9001"
- "9000:9000"
volumes:
- ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/minio:/minio_data
command: minio server /minio_data --console-address ":9001"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
standalone:
container_name: milvus-standalone
image: milvusdb/milvus:v2.5.10
command: ["milvus", "run", "standalone"]
security_opt:
- seccomp:unconfined
environment:
ETCD_ENDPOINTS: etcd:2379
MINIO_ADDRESS: minio:9000
volumes:
- ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/milvus:/var/lib/milvus
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9091/healthz"]
interval: 30s
start_period: 90s
timeout: 20s
retries: 3
ports:
- "19530:19530"
- "9091:9091"
depends_on:
- "etcd"
- "minio"
networks:
default:
name: milvus
version: '3.8'
services:
web:
image: python:3.9-slim
container_name: web_app
command: >
sh -c "pip install psycopg2-binary &&
python -m http.server 8000"
volumes:
- ./app:/app
working_dir: /app
ports:
- "8000:8000"
depends_on:
- db
environment:
- DB_HOST=db
- DB_NAME=mydatabase
- DB_USER=myuser
- DB_PASSWORD=mypassword
networks:
- app_network
extends:
file: docker-compose.db.yml
service: db
networks:
app_network:
driver: bridge
# version: '3.9'
# services:
# agentchat:
# container_name: "agentchat"
# build:
# context: . # Build context is the current directory
# dockerfile: Dockerfile # Dockerfile for agentchat
# volumes:
# - /var/log:/var/log
# environment:
# - GEMINI_API_KEY=${GEMINI_API_KEY} # Reference variable from .env
# ports:
# - "8000:8000"
# entrypoint: /app/myapp
# docker-host:
# image: qoomon/docker-host
# cap_add: ['NET_ADMIN', 'NET_RAW']
# mem_limit: 8M
# restart: on-failure
# # etcd:
# # container_name: milvus-etcd
# # image: quay.io/coreos/etcd:v3.5.18
# # environment:
# # - ETCD_AUTO_COMPACTION_MODE=revision
# # - ETCD_AUTO_COMPACTION_RETENTION=1000
# # - ETCD_QUOTA_BACKEND_BYTES=4294967296
# # - ETCD_SNAPSHOT_COUNT=50000
# # volumes:
# # - ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/etcd:/etcd
# # command: etcd -advertise-client-urls=http://etcd:2379 -listen-client-urls http://0.0.0.0:2379 --data-dir /etcd
# # healthcheck:
# # test: ["CMD", "etcdctl", "endpoint", "health"]
# # interval: 30s
# # timeout: 20s
# # retries: 3
# # minio:
# # container_name: milvus-minio
# # image: minio/minio:RELEASE.2023-03-20T20-16-18Z
# # environment:
# # MINIO_ACCESS_KEY: minioadmin
# # MINIO_SECRET_KEY: minioadmin
# # ports:
# # - "9001:9001"
# # - "9000:9000"
# # volumes:
# # - ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/minio:/minio_data
# # command: minio server /minio_data --console-address ":9001"
# # healthcheck:
# # test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
# # interval: 30s
# # timeout: 20s
# # retries: 3
# # standalone:
# # container_name: milvus-standalone
# # image: milvusdb/milvus:v2.5.10
# # command: ["milvus", "run", "standalone"]
# # security_opt:
# # - seccomp:unconfined
# # environment:
# # ETCD_ENDPOINTS: etcd:2379
# # MINIO_ADDRESS: minio:9000
# # volumes:
# # - ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/milvus:/var/lib/milvus
# # healthcheck:
# # test: ["CMD", "curl", "-f", "http://localhost:9091/healthz"]
# # interval: 30s
# # start_period: 90s
# # timeout: 20s
# # retries: 3
# # ports:
# # - "19530:19530"
# # - "9091:9091"
# # depends_on:
# # - "etcd"
# # - "minio"
# # db:
# # image: mysql/mysql-server
# # environment:
# # MYSQL_USER: 'user'
# # MYSQL_PASSWORD: 'password'
# # MYSQL_ROOT_PASSWORD: 'aa123456'
# # ports:
# # - 3306:3306
# # volumes:
# # - dbgpt-myql-db:/var/lib/mysql
# # - ./docker/examples/my.cnf:/etc/my.cnf
# # - ./docker/examples/sqls:/docker-entrypoint-initdb.d
# # - ./assets/schema/dbgpt.sql:/docker-entrypoint-initdb.d/dbgpt.sql
# # restart: unless-stopped
# # webserver:
# # image: eosphorosai/dbgpt-openai:latest
# # command: dbgpt start webserver --config /app/configs/dbgpt-graphrag.toml
# # environment:
# # - SILICONFLOW_API_KEY=${SILICONFLOW_API_KEY}
# # - MYSQL_PASSWORD=aa123456
# # - MYSQL_HOST=db
# # - MYSQL_PORT=3306
# # - MYSQL_DATABASE=dbgpt
# # - MYSQL_USER=root
# # - OPENAI_API_KEY=sk-UIpD9DohtE0Ok4wtFdC21668Dc3241629e8aA05d5dAeFdA1
# # volumes:
# # - ./configs:/app/configs
# # - /data:/data
# # # May be you can mount your models to container
# # - /data/models:/app/models
# # - dbgpt-data:/app/pilot/data
# # - dbgpt-message:/app/pilot/message
# # depends_on:
# # - db
# # - tugraph
# # ports:
# # - 5670:5670/tcp
# # # webserver may be failed, it must wait all sqls in /docker-entrypoint-initdb.d execute finish.
# # restart: unless-stopped
# # networks:
# # - dbgptnet
# # ipc: host
# # tugraph:
# # image: tugraph/tugraph-runtime-centos7:4.5.1
# # command: lgraph_server -d run --enable_plugin true
# # ports:
# # - 7070:7070
# # - 7687:7687
# # - 9090:9090
# # container_name: tugraph_demo
# # restart: unless-stopped
# # volumes:
# # dbgpt-myql-db:
# # dbgpt-data:
# # dbgpt-message:
# # dbgpt-alembic-versions:
...@@ -12,122 +12,11 @@ services: ...@@ -12,122 +12,11 @@ services:
ports: ports:
- "8000:8000" - "8000:8000"
entrypoint: /app/myapp entrypoint: /app/myapp
depends_on:
- standalone
- webserver
docker-host: docker-host:
image: qoomon/docker-host image: qoomon/docker-host
cap_add: ['NET_ADMIN', 'NET_RAW'] cap_add: ['NET_ADMIN', 'NET_RAW']
mem_limit: 8M mem_limit: 8M
restart: on-failure restart: on-failure
# etcd:
# container_name: milvus-etcd
# image: quay.io/coreos/etcd:v3.5.18
# environment:
# - ETCD_AUTO_COMPACTION_MODE=revision
# - ETCD_AUTO_COMPACTION_RETENTION=1000
# - ETCD_QUOTA_BACKEND_BYTES=4294967296
# - ETCD_SNAPSHOT_COUNT=50000
# volumes:
# - ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/etcd:/etcd
# command: etcd -advertise-client-urls=http://etcd:2379 -listen-client-urls http://0.0.0.0:2379 --data-dir /etcd
# healthcheck:
# test: ["CMD", "etcdctl", "endpoint", "health"]
# interval: 30s
# timeout: 20s
# retries: 3
# minio:
# container_name: milvus-minio
# image: minio/minio:RELEASE.2023-03-20T20-16-18Z
# environment:
# MINIO_ACCESS_KEY: minioadmin
# MINIO_SECRET_KEY: minioadmin
# ports:
# - "9001:9001"
# - "9000:9000"
# volumes:
# - ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/minio:/minio_data
# command: minio server /minio_data --console-address ":9001"
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
# interval: 30s
# timeout: 20s
# retries: 3
# standalone:
# container_name: milvus-standalone
# image: milvusdb/milvus:v2.5.10
# command: ["milvus", "run", "standalone"]
# security_opt:
# - seccomp:unconfined
# environment:
# ETCD_ENDPOINTS: etcd:2379
# MINIO_ADDRESS: minio:9000
# volumes:
# - ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/milvus:/var/lib/milvus
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost:9091/healthz"]
# interval: 30s
# start_period: 90s
# timeout: 20s
# retries: 3
# ports:
# - "19530:19530"
# - "9091:9091"
# depends_on:
# - "etcd"
# - "minio"
# db:
# image: mysql/mysql-server
# environment:
# MYSQL_USER: 'user'
# MYSQL_PASSWORD: 'password'
# MYSQL_ROOT_PASSWORD: 'aa123456'
# ports:
# - 3306:3306
# volumes:
# - dbgpt-myql-db:/var/lib/mysql
# - ./docker/examples/my.cnf:/etc/my.cnf
# - ./docker/examples/sqls:/docker-entrypoint-initdb.d
# - ./assets/schema/dbgpt.sql:/docker-entrypoint-initdb.d/dbgpt.sql
# restart: unless-stopped
# webserver:
# image: eosphorosai/dbgpt-openai:latest
# command: dbgpt start webserver --config /app/configs/dbgpt-graphrag.toml
# environment:
# - SILICONFLOW_API_KEY=${SILICONFLOW_API_KEY}
# - MYSQL_PASSWORD=aa123456
# - MYSQL_HOST=db
# - MYSQL_PORT=3306
# - MYSQL_DATABASE=dbgpt
# - MYSQL_USER=root
# - OPENAI_API_KEY=sk-UIpD9DohtE0Ok4wtFdC21668Dc3241629e8aA05d5dAeFdA1
# volumes:
# - ./configs:/app/configs
# - /data:/data
# # May be you can mount your models to container
# - /data/models:/app/models
# - dbgpt-data:/app/pilot/data
# - dbgpt-message:/app/pilot/message
# depends_on:
# - db
# - tugraph
# ports:
# - 5670:5670/tcp
# # webserver may be failed, it must wait all sqls in /docker-entrypoint-initdb.d execute finish.
# restart: unless-stopped
# networks:
# - dbgptnet
# ipc: host
# tugraph:
# image: tugraph/tugraph-runtime-centos7:4.5.1
# command: lgraph_server -d run --enable_plugin true
# ports:
# - 7070:7070
# - 7687:7687
# - 9090:9090
# container_name: tugraph_demo
# restart: unless-stopped
# volumes:
# dbgpt-myql-db:
# dbgpt-data:
# dbgpt-message:
# dbgpt-alembic-versions:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment