-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (39 loc) · 897 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (39 loc) · 897 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
name: sebutils-dev-stack
services:
sebutils-paper:
image: itzg/minecraft-server
tty: true
stdin_open: true
ports:
- "25565:25565"
- "8080:8080"
environment:
EULA: "TRUE"
TYPE: "PAPER"
VERSION: "1.21.11"
MEMORY: "1G"
volumes:
- ./dev-server:/data
depends_on:
sebutils-postgres:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "nc -z localhost 25565"]
interval: 30s
timeout: 10s
retries: 3
sebutils-postgres:
image: postgres:16
ports:
- "5432:5432"
environment:
POSTGRES_USER: sebutils
POSTGRES_PASSWORD: password
POSTGRES_DB: sebutils
volumes:
- ./postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U sebutils -d sebutils"]
interval: 3s
timeout: 5s
retries: 5