forked from Simon-Initiative/oli-torus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-haproxy.yml
More file actions
58 lines (54 loc) · 1.25 KB
/
docker-compose-haproxy.yml
File metadata and controls
58 lines (54 loc) · 1.25 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
services:
postgres:
image: ankane/pgvector
container_name: oli_postgres
logging:
driver: "json-file"
options:
max-file: "1"
max-size: 5m
ports:
- 5432:5432
env_file: ./postgres.env
volumes:
- pg_data:/var/lib/postgresql/data
minio:
image: minio/minio
container_name: oli_minio
env_file: ./oli.env
entrypoint: /bin/sh
ports:
- 9000:9000
- 9001:9001
volumes:
- minio_data:/data
command:
- -c
- exec env MINIO_ROOT_USER="$$AWS_ACCESS_KEY_ID" MINIO_ROOT_PASSWORD="$$AWS_SECRET_ACCESS_KEY" minio server --console-address :9001 /data
clickhouse:
image: clickhouse/clickhouse-server:latest
container_name: oli_clickhouse
ports:
- 8123:8123
- 9090:9000
- 9009:9009
volumes:
- clickhouse_data:/var/lib/clickhouse
- ./clickhouse/users.xml:/etc/clickhouse-server/users.d/dev-users.xml
haproxy:
build:
context: ./scripts/dev/ha-proxy
dockerfile: Dockerfile
container_name: oli_haproxy
depends_on:
- minio
env_file: ./oli.env
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- 80:80
- 443:443
volumes:
pg_data:
minio_data:
clickhouse_data: