Scaffold tomswallapi control-plane service
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
services:
|
||||
db:
|
||||
image: postgres:17-alpine
|
||||
environment:
|
||||
POSTGRES_USER: tomswallapi
|
||||
POSTGRES_PASSWORD: tomswallapi
|
||||
POSTGRES_DB: tomswallapi
|
||||
ports:
|
||||
- "5432:5432"
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U tomswallapi"]
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 5
|
||||
|
||||
api:
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
VERSION: dev
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
TOMSWALLAPI_DB_HOST: db
|
||||
TOMSWALLAPI_DB_PASSWORD: tomswallapi
|
||||
TOMSWALLAPI_WRITE_TOKEN: dev-write-token
|
||||
TOMSWALLAPI_AGENT_TOKEN: dev-agent-token
|
||||
ports:
|
||||
- "8000:8000"
|
||||
Reference in New Issue
Block a user