-
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathdocker-compose.example.yml
More file actions
34 lines (33 loc) · 998 Bytes
/
docker-compose.example.yml
File metadata and controls
34 lines (33 loc) · 998 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
# Example docker-compose.yml to run NPPS4 with PostgreSQL
services:
postgresql:
image: postgres:17-alpine
environment:
POSTGRES_USER: npps4
POSTGRES_PASSWORD: npps4
PGUSER: postgres
volumes:
- ./postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-d", "npps4"]
interval: 30s
timeout: 60s
retries: 5
start_period: 80s
npps4:
build:
context: .
environment:
NPPS4_CONFIG_DATABASE_URL: postgresql+psycopg://npps4:npps4@postgresql/npps4 # maps to database URL in config.toml
NPPS4_CONFIG_DOWNLOAD_BACKEND: n4dlapi # Use NPPS4 DLAPI
NPPS4_CONFIG_DOWNLOAD_N4DLAPI_SERVER: http://example.com/npps4-dlapi # Uses this server to provide game files.
# ... and so on
NPPS4_WORKER: 1
ports:
- 51376:51376
volumes:
- ./npps4_data:/NPPS4/data
restart: unless-stopped
depends_on:
postgresql:
condition: service_healthy