29 lines
530 B
YAML
29 lines
530 B
YAML
services:
|
|
db:
|
|
image: postgres
|
|
volumes:
|
|
- ./db:/var/lib/postgresql/data
|
|
environment:
|
|
- POSTGRES_DB=rpz_auth
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_PASSWORD=postgres
|
|
|
|
auth:
|
|
build: ./auth
|
|
depends_on:
|
|
- db
|
|
restart: unless-stopped
|
|
|
|
minecraft:
|
|
build: .
|
|
stdin_open: true # docker run -i
|
|
tty: true # docker run -t
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./data:/etc/minecraft
|
|
ports:
|
|
- 25565:25565
|
|
depends_on:
|
|
- db
|
|
- auth
|