chore(workspace): bootstrap platform, judge and frontend
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
name: kf-oj-dev
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:18.6-bookworm
|
||||
environment:
|
||||
POSTGRES_USER: ${POSTGRES_USER:?required}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?required}
|
||||
POSTGRES_DB: ${POSTGRES_DB:?required}
|
||||
ports:
|
||||
- "127.0.0.1:${POSTGRES_PORT:-5432}:5432"
|
||||
volumes:
|
||||
- postgres-data:/var/lib/postgresql
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 20
|
||||
mem_limit: 1g
|
||||
cpus: 1
|
||||
rabbitmq:
|
||||
image: rabbitmq:4.3.6-management
|
||||
environment:
|
||||
RABBITMQ_DEFAULT_USER: ${RABBITMQ_USER:?required}
|
||||
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_PASSWORD:?required}
|
||||
RABBITMQ_DEFAULT_VHOST: ${RABBITMQ_VHOST:?required}
|
||||
ports:
|
||||
- "127.0.0.1:${RABBITMQ_PORT:-5672}:5672"
|
||||
- "127.0.0.1:${RABBITMQ_MANAGEMENT_PORT:-15672}:15672"
|
||||
volumes:
|
||||
- rabbitmq-data:/var/lib/rabbitmq
|
||||
healthcheck:
|
||||
test: ["CMD", "rabbitmq-diagnostics", "-q", "ping"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 20
|
||||
mem_limit: 768m
|
||||
cpus: 1
|
||||
volumes:
|
||||
postgres-data:
|
||||
rabbitmq-data:
|
||||
Reference in New Issue
Block a user