feat: add control plane authentication baseline
This commit is contained in:
1 parent
a4c93ff1a7
commit
0d10e2d124
21 files changed
+1403
-18
No files matched your search
@@ -0,0 +1,22 @@
|
||||
name: moyi-control-plane
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "${CONTROL_PLANE_POSTGRES_PORT:-5434}:5432"
|
||||
environment:
|
||||
POSTGRES_USER: ${CONTROL_PLANE_POSTGRES_USER:-moyi}
|
||||
POSTGRES_PASSWORD: ${CONTROL_PLANE_POSTGRES_PASSWORD:?Set CONTROL_PLANE_POSTGRES_PASSWORD in infra/control-plane/.env}
|
||||
POSTGRES_DB: ${CONTROL_PLANE_POSTGRES_DB:-moyi_control}
|
||||
volumes:
|
||||
- control_plane_postgres_data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
|
||||
volumes:
|
||||
control_plane_postgres_data:
|
||||
Reference in new issue
Block a user