-
Notifications
You must be signed in to change notification settings - Fork 52
/
docker-compose.psql.yml
67 lines (63 loc) · 1.68 KB
/
docker-compose.psql.yml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
version: '3.8'
volumes:
ddon-server-psql-volume:
networks:
ddon-network:
services:
app:
container_name: ddon-server
build:
context: .
args:
- RUNTIME=${RUNTIME}
restart: no
ports:
# Game server
- "52000:52000"
# Web server
- "52099:52099"
# Login server
- "52100:52100"
environment:
- DB_TYPE=postgresql
- DB_DATABASE=postgres
- DB_FOLDER=/var/ddon/server/Files/Database
- DB_HOST=db
- DB_USER=root
- DB_PASS=root
- DB_PORT=5432
- DB_WIPE_ON_STARTUP=false
volumes:
- ./Arrowgene.Ddon.config.psql.local_dev.json:/var/ddon/server/Files/Arrowgene.Ddon.config.json:ro
- ./Arrowgene.Ddon.Shared/Files/Assets:/var/ddon/server/Files/Assets:ro
networks:
- ddon-network
# Workaround: cli expects to be able to process keyboard input
tty: true
depends_on:
db:
condition: service_healthy
command: /var/ddon/server/Arrowgene.Ddon.Cli server start
db:
container_name: ddon-db
image: postgres:16-alpine
ports:
# Database
- "5432:5432"
restart: no
volumes:
- ddon-server-psql-volume:/var/lib/postgresql/data
- $PWD/deploy/postgresql/postgresql.conf:/etc/postgresql/postgresql.conf:ro
networks:
- ddon-network
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root
- POSTGRES_DB=postgres
- POSTGRES_INITDB_ARGS=--auth=scram-sha-256 --lc-numeric=en_US.UTF-8
command: postgres -c config_file=/etc/postgresql/postgresql.conf
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-d", "postgres"]
interval: 10s
timeout: 1s
retries: 3