Commit a396ec6b authored by vicotor's avatar vicotor

update docker-compose

parent 54f6d8e6
......@@ -5,10 +5,10 @@ metrics_port = 28010
private_key = "E671C143A110C239B563F702E9F4017CA6B2B2912F675EED9AA4FED684EB30CC"
standard_task_file = "standardtask.json"
worker_multiple = 2
worker_signature_expired_time=1
worker_signature_expired_time=10
[mongodb]
url="mongodb://0.0.0.0:27017"
url="mongodb://127.0.0.1:27017"
database="ai"
user="admin"
password="admin"
......@@ -24,7 +24,7 @@ db=0
#user="root"
#password="12345678"
#database="liuxuzhong"
host="18.167.203.17"
host="127.0.0.1"
port=3306
user="ai"
password="RFnnKHRar5xk7TEF"
......
......@@ -4,33 +4,6 @@ networks:
driver: bridge
services:
influxdb:
image: influxdb:1.8
ports:
- "8086:8086"
environment:
- INFLUXDB_DB=k6
grafana:
image: grafana/grafana:9.3.8
ports:
- "3000:3000"
environment:
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_BASIC_ENABLED=false
volumes:
- ./grafana:/etc/grafana/provisioning/
k6:
image: grafana/k6:latest
ports:
- "6565:6565"
environment:
- K6_OUT=influxdb=http://influxdb:8086/k6
volumes:
- ./scripts:/scripts
mysql:
container_name: "ai-mysql"
......@@ -66,6 +39,7 @@ services:
- "6379:6379"
volumes:
- "/etc/localtime:/etc/localtime"
- "./redis/conf/redis.conf:/etc/redis/redis.conf"
zookeeper:
image: library/zookeeper
container_name: zookeeper
......@@ -101,4 +75,27 @@ services:
- KAFKA_CLUSTERS_0_NAME=kafka
- KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS=kafka:9092
mongo:
image: mongo:latest
container_name: mongo
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: admin
ports:
- "0.0.0.0:27017:27017"
volumes:
- "./mongo/data:/data/operator"
- "./mongo/config:/data/configdb"
mongo-express:
image: mongo-express:latest
container_name: mongo-express
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: admin
ME_CONFIG_MONGODB_ADMINPASSWORD: admin
ME_CONFIG_MONGODB_SERVER: mongo
ME_CONFIG_MONGODB_PORT: "27017"
ports:
- "0.0.0.0:8081:8081"
depends_on:
- mongo
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