forked from dittofeed/dittofeed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yaml
125 lines (124 loc) · 3.18 KB
/
docker-compose.prod.yaml
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
version: "3.9"
x-database-credentials: &database-credentials
DATABASE_USER: ${DATABASE_USER:-postgres}
DATABASE_PASSWORD: ${DATABASE_PASSWORD:-password}
x-clickhouse-credentials: &clickhouse-credentials
CLICKHOUSE_USER: ${CLICKHOUSE_USER:-dittofeed}
CLICKHOUSE_PASSWORD: ${CLICKHOUSE_PASSWORD:-password}
x-backend-app-env: &backend-app-env
<<: [*clickhouse-credentials, *database-credentials]
NODE_ENV: production
DATABASE_HOST: ${DATABASE_HOST:-postgres}
DATABASE_PORT: ${DATABASE_PORT:-5432}
CLICKHOUSE_HOST: ${CLICKHOUSE_HOST:-http://clickhouse-server:8123}
TEMPORAL_ADDRESS: ${TEMPORAL_ADDRESS:-temporal:7233}
services:
dashboard:
image: dittofeed/dittofeed-dashboard:${IMAGE_TAG:-v0.7.4}
ports:
- "3000:3000"
depends_on:
- postgres
- temporal
- api
env_file:
- .env
environment:
<<: *backend-app-env
networks:
- dittofeed-network
api:
image: dittofeed/dittofeed-api:${IMAGE_TAG:-v0.7.4}
ports:
- "3001:3001"
depends_on:
- postgres
- temporal
- worker
env_file:
- .env
environment:
<<: *backend-app-env
networks:
- dittofeed-network
worker:
image: dittofeed/dittofeed-worker:${IMAGE_TAG:-v0.7.4}
depends_on:
- postgres
- temporal
env_file:
- .env
environment:
<<: *backend-app-env
networks:
- dittofeed-network
admin-cli:
image: dittofeed/dittofeed-admin-cli:${IMAGE_TAG:-v0.7.4}
entrypoint: []
command: tail -f /dev/null
tty: true
env_file:
- .env
depends_on:
- postgres
- temporal
- clickhouse-server
environment:
PRETTY_LOGS: true
<<: *backend-app-env
networks:
- dittofeed-network
temporal:
container_name: temporal
depends_on:
- postgres
environment:
- DB=postgresql
- DB_PORT=${DATABASE_PORT:-5432}
- POSTGRES_USER=${DATABASE_USER:-postgres}
- POSTGRES_PWD=${DATABASE_PASSWORD:-password}
- POSTGRES_SEEDS=${DATABASE_HOST:-postgres}
- DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/prod.yaml
image: temporalio/auto-setup:${TEMPORAL_VERSION:-1.18.5}
labels:
kompose.volume.type: configMap
networks:
- dittofeed-network
ports:
- 7233:7233
volumes:
- ./packages/backend-lib/temporal-dynamicconfig:/etc/temporal/config/dynamicconfig
postgres:
image: postgres:${POSTGRES_VERSION:-15}
restart: always
environment:
- POSTGRES_PASSWORD=${DATABASE_PASSWORD:-password}
- POSTGRES_USER=${DATABASE_USER:-postgres}
- POSTGRES_DB=dittofeed
ports:
- "5432:5432"
volumes:
- postgres:/var/lib/postgresql/data
networks:
- dittofeed-network
clickhouse-server:
image: clickhouse/clickhouse-server:22.9.5.25-alpine
environment:
<<: *clickhouse-credentials
ports:
- "8123:8123"
- "9000:9000"
- "9009:9009"
volumes:
- clickhouse_lib:/var/lib/clickhouse
- clickhouse_log:/var/log/clickhouse-server
networks:
- dittofeed-network
volumes:
postgres:
clickhouse_lib:
clickhouse_log:
networks:
dittofeed-network:
driver: bridge
name: dittofeed-network