-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yaml
More file actions
45 lines (44 loc) · 922 Bytes
/
compose.yaml
File metadata and controls
45 lines (44 loc) · 922 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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