Add bundled Docker deployment
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
services:
|
||||
app:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "8080:8080"
|
||||
environment:
|
||||
DATABASE_URL: jdbc:postgresql://db:5432/app_dev
|
||||
DATABASE_USERNAME: app
|
||||
DATABASE_PASSWORD: app
|
||||
LOG_LEVEL: INFO
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
|
||||
db:
|
||||
image: postgres:17-alpine
|
||||
ports:
|
||||
- "5432:5432"
|
||||
environment:
|
||||
POSTGRES_DB: app_dev
|
||||
POSTGRES_USER: app
|
||||
POSTGRES_PASSWORD: app
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U app -d app_dev"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
Reference in New Issue
Block a user