-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
51 lines (51 loc) · 1.23 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
version: "3"
services:
clickhouse-server:
image: yandex/clickhouse-server
hostname: clickhouse-server
restart: always
ports:
- "8123:8123"
- "9000:9000"
- "9009:9009"
- "9004:9004"
ulimits:
nproc: 65535
nofile:
soft: 262144
hard: 262144
expose:
- "9000"
volumes:
- "./database_scripts/clickhouse/clickhouse_schema.sql:/docker-entrypoint-initdb.d/3.sql"
redis:
image: redis
ports:
- "6379:6379"
app:
build:
dockerfile: Dockerfile
context: .
links:
- mysql
- clickhouse-server
depends_on:
- mysql
- clickhouse-server
ports:
- "5000:5000"
mysql:
image: mysql
command: --default-authentication-plugin=mysql_native_password
environment:
- MYSQL_PORT=3306
- MYSQL_DATABASE=flask_test
- MYSQL_ROOT_PASSWORD=supersecretpassword
- MYSQL_PASSWORD=supersecretpassword
ports:
- "3306:3306"
expose:
- "3306"
volumes:
- "./database_scripts/sql/schema.sql:/docker-entrypoint-initdb.d/1.sql"
- "./database_scripts/sql/data.sql:/docker-entrypoint-initdb.d/2.sql"