docker-compose.yml
Rama main · réplica de lectura del repositorio original.
name: webyz
# Host ports are deliberately non-default: 5432, 6379 and 9000 are already
# taken by other projects on this machine. Change the left side of each mapping
# if you want the defaults back, and keep apps/api/.env in sync.
services:
postgres:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: webyz
ports:
- "5442:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d webyz"]
interval: 5s
timeout: 5s
retries: 10
clickhouse:
image: clickhouse/clickhouse-server:24.8-alpine
restart: unless-stopped
environment:
CLICKHOUSE_DB: webyz_analytics
CLICKHOUSE_USER: default
CLICKHOUSE_PASSWORD: ""
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: 1
ports:
- "8123:8123"
- "9010:9000"
volumes:
- chdata:/var/lib/clickhouse
ulimits:
nofile:
soft: 262144
hard: 262144
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:8123/ping || exit 1"]
interval: 5s
timeout: 5s
retries: 20
redis:
image: redis:7-alpine
restart: unless-stopped
command: ["redis-server", "--appendonly", "yes"]
ports:
- "6382:6379"
volumes:
- redisdata:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 10
volumes:
pgdata:
chdata:
redisdata: