-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yml
48 lines (47 loc) · 1.48 KB
/
docker-compose.yml
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
version: "3"
services:
postgres:
container_name: postgres-ssp2
image: postgres:14
ports:
- "5432:5432"
command: ["postgres", "-cshared_preload_libraries=pg_stat_statements"]
#command: ["postgres", "-cshared_preload_libraries=pg_stat_statements", "-clog_statement=all"]
environment:
POSTGRES_USER: dev-node
POSTGRES_PASSWORD: insecure-change-me-in-prod
POSTGRES_DB: dev-node
POSTGRES_INITDB_ARGS: "-E UTF8 --locale=C"
POSTGRES_HOST_AUTH_METHOD: md5
volumes:
- ./devel/data/postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "5432"]
interval: 30s
timeout: 10s
retries: 15
pgweb:
container_name: pgweb-ssp2
image: sosedoff/pgweb:0.11.12
restart: on-failure
ports:
- "8081:8081"
command: ["pgweb", "--bind=0.0.0.0", "--listen=8081", "--binary-codec=hex"]
links:
- postgres:postgres
environment:
- DATABASE_URL=postgres://dev-node:insecure-change-me-in-prod@postgres:5432/dev-node?sslmode=disable
depends_on:
- postgres
database:
container_name: clickhouse-ssp
image: clickhouse/clickhouse-server:23.9
user: "101:101"
hostname: clickhouse
volumes:
- ${PWD}/devel/clickhouse-server/config.xml:/etc/clickhouse-server/config.d/config.xml
- ${PWD}/devel/clickhouse-server/users.xml:/etc/clickhouse-server/users.d/users.xml
ports:
- "8123:8123"
- "9000:9000"
- "9005:9005"