2023-06-20 07:12:15 +00:00
|
|
|
|
|
|
|
services:
|
2023-06-22 06:53:38 +00:00
|
|
|
postgresql:
|
|
|
|
image: 'postgres:15'
|
|
|
|
environment:
|
|
|
|
- POSTGRES_USER=gopenfusion
|
|
|
|
- POSTGRES_DB=gopenfusion
|
|
|
|
- POSTGRES_PASSWORD=gopenfusion
|
|
|
|
redis:
|
|
|
|
image: 'redis:7-alpine'
|
2023-06-20 07:12:15 +00:00
|
|
|
login:
|
|
|
|
restart: on-failure
|
|
|
|
build: .
|
|
|
|
hostname: login
|
2023-06-22 06:53:38 +00:00
|
|
|
command: login
|
|
|
|
environment:
|
|
|
|
- DB_ADDR=postgresql:5432
|
|
|
|
- DB_USER=gopenfusion
|
|
|
|
- DB_PASS=gopenfusion
|
|
|
|
- DB_NAME=gopenfusion
|
|
|
|
- REDIS_ADDR=redis:6379
|
2023-06-20 07:12:15 +00:00
|
|
|
ports:
|
|
|
|
- '23000:23000'
|
2023-06-22 06:53:38 +00:00
|
|
|
links:
|
|
|
|
- postgresql
|
|
|
|
- redis
|
2023-06-22 23:05:02 +00:00
|
|
|
shard:
|
2023-06-22 06:53:38 +00:00
|
|
|
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
|
2023-06-27 05:36:02 +00:00
|
|
|
- TDATA_PATH=/tdata
|
|
|
|
volumes:
|
|
|
|
- './tdata:/tdata'
|
2023-06-22 06:53:38 +00:00
|
|
|
ports:
|
|
|
|
- '23001:23001'
|
|
|
|
links:
|
|
|
|
- postgresql
|
|
|
|
- redis
|