feat: Next 16 + Payload 3 scaffold with Kaniko CI and Swarm deploy (#1)
Some checks failed
ci/woodpecker/push/web Pipeline failed
Some checks failed
ci/woodpecker/push/web Pipeline failed
Co-authored-by: Jason Woltje <jason@diversecanvas.com> Co-committed-by: Jason Woltje <jason@diversecanvas.com>
This commit was merged in pull request #1.
This commit is contained in:
29
docker-compose.yml
Normal file
29
docker-compose.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
# =============================================================================
|
||||
# jasonwoltje.com — local dev Postgres
|
||||
# =============================================================================
|
||||
# Brings up just Postgres for local `pnpm dev`. The Next app runs on the host
|
||||
# via `pnpm dev` (not in-container) for fast iteration.
|
||||
#
|
||||
# docker compose up -d # start Postgres
|
||||
# pnpm dev # run Next + Payload on host
|
||||
# =============================================================================
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:17-alpine
|
||||
environment:
|
||||
POSTGRES_DB: ${PAYLOAD_POSTGRES_DB:-payload}
|
||||
POSTGRES_USER: ${PAYLOAD_POSTGRES_USER:-payload}
|
||||
POSTGRES_PASSWORD: ${PAYLOAD_POSTGRES_PASSWORD:-payload}
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- postgres-data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER}"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
volumes:
|
||||
postgres-data:
|
||||
Reference in New Issue
Block a user