openspg/dev/release/docker-compose.yml

54 lines
1.5 KiB
YAML
Raw Normal View History

2023-10-26 10:34:08 +08:00
version: "3.7"
services:
server:
restart: always
image: spg-registry.cn-hangzhou.cr.aliyuncs.com/spg/openspg-server:latest
container_name: release-openspg-server
ports:
- "8887:8887"
depends_on:
- mysql
- tugraph
- elasticsearch
command: [
'--server.repository.impl.jdbc.host=mysql',
2024-01-08 20:07:26 +08:00
'--server.repository.impl.jdbc.password=openspg',
'--cloudext.graphstore.url=tugraph://tugraph:9090?graphName=default&timeout=50000&accessId=admin&accessKey=73@TuGraph',
'--cloudext.searchengine.url=elasticsearch://elasticsearch:9200?scheme=http'
]
mysql:
restart: always
image: spg-registry.cn-hangzhou.cr.aliyuncs.com/spg/openspg-mysql:latest
container_name: release-openspg-mysql
environment:
TZ: Asia/Shanghai
LANG: C.UTF-8
MYSQL_ROOT_PASSWORD: openspg
MYSQL_DATABASE: openspg
ports:
- "3306:3306"
command: [
'--character-set-server=utf8mb4',
'--collation-server=utf8mb4_general_ci'
]
tugraph:
image: tugraph/tugraph-runtime-centos7:4.0.1
container_name: release-openspg-tugraph
# default username is admin and default password is 73@TuGraph
ports:
- "7070:7070"
- "9090:9090"
command: lgraph_server
elasticsearch:
image: elasticsearch:8.5.3
container_name: release-openspg-elasticsearch
ports:
- "9200:9200"
- "9300:9300"
environment:
- discovery.type=single-node
- xpack.security.enabled=false