mirror of
https://github.com/CPunch/gopenfusion.git
synced 2024-12-04 22:46:32 +00:00
unknown
fd41b32b70
- use environment variable TDATA_PATH to specify the location of the tdata directory
46 lines
922 B
YAML
46 lines
922 B
YAML
|
|
services:
|
|
postgresql:
|
|
image: 'postgres:15'
|
|
environment:
|
|
- POSTGRES_USER=gopenfusion
|
|
- POSTGRES_DB=gopenfusion
|
|
- POSTGRES_PASSWORD=gopenfusion
|
|
redis:
|
|
image: 'redis:7-alpine'
|
|
login:
|
|
restart: on-failure
|
|
build: .
|
|
hostname: login
|
|
command: login
|
|
environment:
|
|
- DB_ADDR=postgresql:5432
|
|
- DB_USER=gopenfusion
|
|
- DB_PASS=gopenfusion
|
|
- DB_NAME=gopenfusion
|
|
- REDIS_ADDR=redis:6379
|
|
ports:
|
|
- '23000:23000'
|
|
links:
|
|
- postgresql
|
|
- redis
|
|
shard:
|
|
restart: on-failure
|
|
build: .
|
|
hostname: shard
|
|
command: shard
|
|
environment:
|
|
- DB_ADDR=postgresql:5432
|
|
- DB_USER=gopenfusion
|
|
- DB_PASS=gopenfusion
|
|
- DB_NAME=gopenfusion
|
|
- REDIS_ADDR=redis:6379
|
|
- TDATA_PATH=/tdata
|
|
volumes:
|
|
- './tdata:/tdata'
|
|
ports:
|
|
- '23001:23001'
|
|
links:
|
|
- postgresql
|
|
- redis
|