-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (46 loc) · 1.03 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
services:
backend:
build:
context: .
target: dev
image: backend
ports:
- 3000:80
volumes:
- .env:/usr/backend/.env
- ./src:/usr/backend/src
- ./tests:/usr/backend/tests
depends_on:
- db
- redis
- clickhouse
db:
image: mysql:8.4
command: --mysql-native-password=ON
environment:
- MYSQL_DATABASE=${DB_NAME}
- MYSQL_ROOT_PASSWORD=${DB_PASS}
restart: unless-stopped
ports:
- 3306:3306
volumes:
- data:/var/lib/mysql
redis:
image: arm64v8/redis:7-alpine
command: redis-server --requirepass ${REDIS_PASSWORD}
ports:
- 6379:6379
clickhouse:
image: clickhouse/clickhouse-server:24.12-alpine
environment:
CLICKHOUSE_USER: ${CLICKHOUSE_USER}
CLICKHOUSE_PASSWORD: ${CLICKHOUSE_PASSWORD}
CLICKHOUSE_DB: ${CLICKHOUSE_DB}
restart: unless-stopped
ports:
- ${CLICKHOUSE_PORT}:8123
volumes:
- clickhouse-data:/var/lib/clickhouse
volumes:
data:
clickhouse-data: