.
Some checks failed
Deploy to Mac Mini / Test (push) Failing after 54s
Deploy to Mac Mini / Deploy (push) Has been skipped

This commit is contained in:
2026-02-26 21:33:22 +09:00
parent dabf1f3ba9
commit 3240b57dca
5 changed files with 124 additions and 4 deletions

34
docker-compose.yml Normal file
View File

@@ -0,0 +1,34 @@
services:
db:
image: postgres:16-alpine
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: mmorpg
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
server:
build: .
restart: always
ports:
- "8080:8080"
depends_on:
db:
condition: service_healthy
environment:
- DB_HOST=db
- DB_USER=postgres
- DB_PASSWORD=postgres
- DB_NAME=mmorpg
volumes:
- ./config:/app/config
volumes:
postgres_data: