-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcompose.yaml
52 lines (39 loc) · 939 Bytes
/
compose.yaml
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
46
47
48
49
50
51
52
volumes:
postgres-data:
redis-data:
server-data:
services:
postgres:
image: postgres:15.3
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: koc
ports:
- "5432:5432"
redis:
image: redis:7.0.11
volumes:
- redis-data:/data
server:
image: ghcr.io/kocxyz/serverdocker
build: .
volumes:
- server-data:/data
environment:
KOC_BACKEND_MAX_PLAYER_CONNECTIONS: 10
KOC_SECRET:
KOC_BACKEND_PORT: 23600
KOC_SERVER_MIN_PORT: 23600
KOC_SERVER_MAX_PORT: 23699
KOC_BACKEND_DB: postgres://postgres:postgres@postgres:5432/koc
KOC_BACKEND_REDIS_DB_HOST: redis
KOC_BACKEND_REDIS_DB_PORT: 6379
ports:
- "23600:23600"
- "23600-23699:23600-23699/udp"
depends_on:
- redis
- postgres