-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
39 lines (38 loc) · 970 Bytes
/
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
version: '3'
services:
postgres:
image: postgres
# uncomment to access postgres from the host machine
# ports:
# - 5432:5432
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: nucleoid
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- ./postgres_data:/var/lib/postgresql/data
clickhouse:
image: yandex/clickhouse-server
# uncomment to access clickhouse database from the host machine
# ports:
# - 8123:8123
# - 9000:9000
environment:
CLICKHOUSE_DB: nucleoid
volumes:
- ./clickhouse_data:/var/lib/clickhouse
backend:
build: .
volumes:
- ./config:/srv/backend/run
ports:
- 20000:20000
- 1234:1234
environment:
RUST_LOG: info
WAIT_HOSTS: postgres:5432, clickhouse:9000
# wait 10s to give time for postgres and clickhouse to finish loading up.
WAIT_AFTER: 10
depends_on:
- postgres
- clickhouse