mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-29 05:56:38 +08:00
62 lines
1.8 KiB
YAML
62 lines
1.8 KiB
YAML
services:
|
|
postgres:
|
|
image: postgres:17-alpine
|
|
container_name: refreshing-postgres
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_DB: ${POSTGRES_DB:-refreshing}
|
|
POSTGRES_USER: ${POSTGRES_USER:-postgres}
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
|
|
TZ: ${TZ:-Asia/Shanghai}
|
|
ports:
|
|
- "${POSTGRES_PORT:-5432}:5432"
|
|
volumes:
|
|
- ./data/postgres_data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres} -d ${POSTGRES_DB:-refreshing}"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 10s
|
|
#
|
|
# redis:
|
|
# image: redis:7-alpine
|
|
# container_name: refreshing-redis
|
|
# restart: unless-stopped
|
|
# command: ["redis-server", "--appendonly", "yes"]
|
|
# ports:
|
|
# - "${REDIS_PORT:-6379}:6379"
|
|
# volumes:
|
|
# - ./data/redis_data:/data
|
|
# healthcheck:
|
|
# test: ["CMD", "redis-cli", "ping"]
|
|
# interval: 10s
|
|
# timeout: 5s
|
|
# retries: 5
|
|
# start_period: 5s
|
|
#
|
|
# clickhouse:
|
|
# image: clickhouse/clickhouse-server:25.3-alpine
|
|
# container_name: refreshing-clickhouse
|
|
# restart: unless-stopped
|
|
# profiles:
|
|
# - clickhouse
|
|
# environment:
|
|
# CLICKHOUSE_DB: ${CLICKHOUSE_DB:-refreshing}
|
|
# CLICKHOUSE_USER: ${CLICKHOUSE_USER:-default}
|
|
# CLICKHOUSE_PASSWORD: ${CLICKHOUSE_PASSWORD:-}
|
|
# CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: 1
|
|
# TZ: ${TZ:-Asia/Shanghai}
|
|
# ports:
|
|
# - "${CLICKHOUSE_HTTP_PORT:-8123}:8123"
|
|
# - "${CLICKHOUSE_NATIVE_PORT:-9000}:9000"
|
|
# volumes:
|
|
# - clickhouse_data:/var/lib/clickhouse
|
|
# - clickhouse_logs:/var/log/clickhouse-server
|
|
# healthcheck:
|
|
# test: ["CMD", "clickhouse-client", "--query", "SELECT 1"]
|
|
# interval: 10s
|
|
# timeout: 5s
|
|
# retries: 5
|
|
# start_period: 15s
|