-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (66 loc) · 1.5 KB
/
docker-compose.yml
File metadata and controls
67 lines (66 loc) · 1.5 KB
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
services:
pwmp-server:
image: ghcr.io/pixelweatherproject/pwmp-server:latest
container_name: pwmp-server
logging:
driver: json-file
options:
max-size: "10m"
max-file: "5"
pids_limit: 8
cpus: 1
mem_limit: 1024m
stdin_open: false
tty: false
read_only: true
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
tmpfs:
- /tmp:rw,noexec,nosuid,nodev,size=1m
ports:
- "55300:55300/tcp"
environment:
# Optionally force debug logging
PWMP_DEBUG: true
volumes:
- ./config.yml:/app/data/config.yml:ro
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
postgres:
container_name: pwmp-postgres
image: postgres:17.4-alpine3.21
logging:
driver: json-file
options:
max-size: "10m"
max-file: "5"
pids_limit: 96
cpus: 1
mem_limit: 1024m
stdin_open: false
tty: false
security_opt:
- no-new-privileges:true
tmpfs:
- /tmp:rw,noexec,nosuid,nodev,size=16m
environment:
POSTGRES_PASSWORD: 'root'
POSTGRES_USER: 'root'
POSTGRES_DB: 'root_db'
PGTZ: 'Europe/Bratislava'
TZ: 'Europe/Bratislava'
volumes:
- ./postgres-data:/var/lib/postgresql/data
ports:
- 5432:5432
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U root -d root_db"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s