version 1.0.0
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- ../docker/env/postgres.env.example
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
|
||||
api:
|
||||
build:
|
||||
context: ../../
|
||||
dockerfile: backend/Dockerfile
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- ../docker/env/backend.env.example
|
||||
ports:
|
||||
- "3000:3000"
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
volumes:
|
||||
- ../../runtime:/app/runtime
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
NODE_ENV=development
|
||||
PORT=3000
|
||||
DATABASE_URL=postgresql://velody:velody@postgres:5432/velody?schema=public
|
||||
STORAGE_ROOT=/app/runtime/storage
|
||||
PUBLIC_BASE_URL=http://localhost:3000
|
||||
DEVICE_BOOTSTRAP_SECRET=replace-me
|
||||
MAX_UPLOAD_SIZE_BYTES=524288000
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
POSTGRES_DB=velody
|
||||
POSTGRES_USER=velody
|
||||
POSTGRES_PASSWORD=velody
|
||||
Reference in New Issue
Block a user