From dc7feed03e5c3e92d6b720aa78e0640fa4d645fa Mon Sep 17 00:00:00 2001 From: ItzYumeii Date: Mon, 14 Sep 2026 01:25:13 +0300 Subject: [PATCH] feat(DRW-001) example docker-compose --- docker-compose.yml | 64 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..88fc927 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,64 @@ +services: + dota-random-pg: + container_name: dota-random-pg + deploy: + resources: + limits: + cpus: '1' + memory: 1gb + reservations: + cpus: '0.5' + memory: 256m + environment: + - POSTGRES_DB= + - POSTGRES_USER= + - POSTGRES_PASSWORD= + healthcheck: + interval: 10s + retries: 5 + test: + - CMD-SHELL + - pg_isready -U -d + image: postgres:15-alpine + ports: + - host_ip: 192.168.1.14 + protocol: tcp + published: 5433 + target: 5432 + restart: unless-stopped + volumes: + - :/var/lib/postgresql/data + + dota-random-web: + container_name: dota-random-web + depends_on: + dota-random-pg: + condition: service_healthy + deploy: + resources: + limits: + cpus: '1' + memory: 512m + reservations: + cpus: '0.25' + memory: 128m + environment: + - DATABASE_URL=postgres://:@:5432/ + - NEUTRAL_ROLL_HIT_CHANCE=0.5 + - RUST_LOG=info + image: + restart: unless-stopped + + dota-random-web-frontend: + container_name: dota-random-web-frontend + depends_on: + - dota-random-web + deploy: + resources: + limits: + cpus: '0.5' + memory: 128m + reservations: + cpus: '0.1' + memory: 32m + image: