-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.dev.yml
More file actions
108 lines (103 loc) · 3.33 KB
/
compose.dev.yml
File metadata and controls
108 lines (103 loc) · 3.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
services:
datastore:
image: ghcr.io/hanzoai/datastore:26
container_name: ${DATASTORE_CONTAINER_NAME:-hanzo-datastore}
environment:
DATASTORE_DB: default
DATASTORE_USER: ${DATASTORE_USER:-hanzo}
DATASTORE_PASSWORD: ${DATASTORE_PASSWORD:-hanzo}
volumes:
- hanzo_datastore_data:/var/lib/hanzo-datastore
- hanzo_datastore_logs:/var/log/hanzo-datastore-server
ports:
- ${HOST_IP:-127.0.0.1}:${DATASTORE_HTTP_PORT:-8123}:8123
- ${HOST_IP:-127.0.0.1}:${DATASTORE_NATIVE_PORT:-9000}:9000
healthcheck:
# Verify BOTH HTTP (8123) and native protocol (9000) are ready.
# The native protocol lags behind HTTP; migrations use port 9000.
test: ["CMD-SHELL", "wget -qO- http://localhost:8123/ping && datastore client --user ${DATASTORE_USER:-hanzo} --password ${DATASTORE_PASSWORD:-hanzo} --port 9000 --query 'SELECT 1' > /dev/null 2>&1"]
interval: 5s
timeout: 10s
retries: 30
start_period: 10s
depends_on:
- postgres
networks:
- default
s3:
image: minio/minio
container_name: ${S3_CONTAINER_NAME:-hanzo-s3}
entrypoint: sh
# create the 'hanzo' bucket before starting the service
command: -c 'mkdir -p /data/hanzo && minio server --address ":9000" --console-address ":9001" /data'
environment:
MINIO_ROOT_USER: ${MINIO_ROOT_USER:-minio}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-miniosecret}
ports:
- ${HOST_IP:-127.0.0.1}:${S3_API_PORT:-9090}:9000
- ${HOST_IP:-127.0.0.1}:${S3_CONSOLE_PORT:-9091}:9001
volumes:
- hanzo_s3_data:/data
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:9000/minio/health/live"]
interval: 1s
timeout: 5s
retries: 5
start_period: 1s
networks:
- default
redis:
image: ghcr.io/hanzoai/kv:latest
container_name: ${REDIS_CONTAINER_NAME:-hanzo-redis}
restart: always
command: >
--requirepass ${REDIS_AUTH:-myredissecret}
--maxmemory-policy noeviction
ports:
- ${HOST_IP:-127.0.0.1}:${REDIS_HOST_PORT:-6379}:6379
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 3s
timeout: 10s
retries: 10
networks:
- default
postgres:
image: postgres:18-alpine
container_name: ${POSTGRES_CONTAINER_NAME:-hanzo-postgres}
restart: always
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 3s
timeout: 3s
retries: 10
command: ["postgres", "-c", "log_statement=all"]
environment:
- POSTGRES_USER=${POSTGRES_USER:-postgres}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-postgres}
- POSTGRES_DB=${POSTGRES_DB:-postgres}
- TZ=UTC
- PGTZ=UTC
ports:
- ${HOST_IP:-127.0.0.1}:${POSTGRES_HOST_PORT:-5432}:5432
volumes:
- hanzo_postgres_data:/var/lib/postgresql/data
networks:
- default
volumes:
hanzo_postgres_data:
name: ${POSTGRES_VOLUME_NAME:-hanzo_postgres_data}
driver: local
hanzo_datastore_data:
name: ${DATASTORE_DATA_VOLUME_NAME:-hanzo_datastore_data}
driver: local
hanzo_datastore_logs:
name: ${DATASTORE_LOGS_VOLUME_NAME:-hanzo_datastore_logs}
driver: local
hanzo_s3_data:
name: ${S3_VOLUME_NAME:-hanzo_s3_data}
driver: local
networks:
default:
name: ${DOCKER_NETWORK_NAME:-hanzo-network}
driver: bridge