-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
70 lines (69 loc) · 1.31 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: '3.0'
services:
main:
container_name: main
build:
context: .
args:
- NODE_ENV=development
env_file:
- .production.env
volumes:
- .:/app
- /app/node_modules
ports:
- "7000:7000"
- "9229:9229"
command: npm run start:dev
depends_on:
- postgres
- clickhouse
- redis
links:
- postgres:postgres
- clickhouse:clickhouse
- redis:redis
restart: always
postgres:
container_name: postgres
image: postgres:14
env_file:
- .production.env
environment:
PG_DATA: /var/lib/postgresql/data
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
restart: always
clickhouse:
container_name: clickhouse
image: yandex/clickhouse-server
env_file:
- .production.env
ports:
- "8123:8123"
- "9000:9000"
- "9009:9009"
ulimits:
nproc: 65535
nofile:
soft: 262144
hard: 262144
volumes:
- clickhousedata:/var/lib/clickhouse
restart: always
redis:
container_name: redis
image: redis:alpine
env_file:
- .production.env
ports:
- "6379:6379"
volumes:
- redisdata:/var/lib/redis/data
restart: always
volumes:
pgdata:
clickhousedata:
redisdata: