feat: Docker Compose support
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
services:
|
||||
db:
|
||||
image: postgres:16-alpine
|
||||
environment:
|
||||
POSTGRES_USER: toolrate
|
||||
POSTGRES_PASSWORD: toolrate
|
||||
POSTGRES_DB: toolrate
|
||||
volumes:
|
||||
- pgdata:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U toolrate"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
app:
|
||||
build: .
|
||||
ports:
|
||||
- "8080:8080"
|
||||
environment:
|
||||
PORT: "8080"
|
||||
DATABASE_URL: postgres://toolrate:toolrate@db:5432/toolrate
|
||||
SESSION_SECRET: change-this-to-a-random-secret
|
||||
NODE_ENV: production
|
||||
LOCAL_ADMIN_USERNAME: admin
|
||||
LOCAL_ADMIN_PASSWORD: pssw0rd
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
|
||||
volumes:
|
||||
pgdata:
|
||||
Reference in New Issue
Block a user