diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-11-30 16:48:43 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-12-04 23:26:15 +0900 |
| commit | 9233b72dcfd4f44f7e30dd0d699530493e87072d (patch) | |
| tree | 0b4c2cc975881f6f67577b1e10ffc1a46482428d /compose.yaml | |
| parent | 3708851e2f9a32e16a70d5dfe09e35d930344aaa (diff) | |
| download | kioku-9233b72dcfd4f44f7e30dd0d699530493e87072d.tar.gz kioku-9233b72dcfd4f44f7e30dd0d699530493e87072d.tar.zst kioku-9233b72dcfd4f44f7e30dd0d699530493e87072d.zip | |
feat(db): add Docker Compose for PostgreSQL
Add docker-compose.yml with PostgreSQL 17 Alpine image for local development.
Includes healthcheck, volume persistence, and environment variable configuration.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'compose.yaml')
| -rw-r--r-- | compose.yaml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..494e60f --- /dev/null +++ b/compose.yaml @@ -0,0 +1,21 @@ +services: + db: + image: postgres:18 + container_name: kioku-db + restart: unless-stopped + environment: + POSTGRES_USER: ${POSTGRES_USER} + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} + POSTGRES_DB: ${POSTGRES_DB} + expose: + - 5432 + volumes: + - db_data:/var/lib/postgresql + healthcheck: + test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"] + interval: 10s + timeout: 5s + retries: 5 + +volumes: + db_data: |
