Skip to content

Commit 4add0aa

Browse files
committed
add docker compose for the local dev env
1 parent f1818b2 commit 4add0aa

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

docker-compose.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
version: "3.6"
2+
services:
3+
postgres:
4+
image: postgres:latest
5+
restart: on-failure
6+
volumes:
7+
- pg-data:/var/lib/postgresql/data
8+
environment:
9+
- POSTGRES_DB=postgres
10+
- POSTGRES_USER=postgres
11+
- POSTGRES_PASSWORD=postgres
12+
ports:
13+
- "5432:5432"
14+
container_name: flexsearch_postgres_db
15+
command:
16+
- "postgres"
17+
- "-c"
18+
- "shared_preload_libraries=pg_stat_statements"
19+
clickhouse:
20+
image: yandex/clickhouse-server:latest
21+
restart: on-failure
22+
volumes:
23+
- ch-data:/var/lib/clickhouse
24+
ports:
25+
- "8123:8123"
26+
container_name: flexsearch_clickhouse_db
27+
redis:
28+
image: redislabs/rejson:latest
29+
restart: on-failure
30+
volumes:
31+
- rd-data:/data
32+
ports:
33+
- "6379:6379"
34+
container_name: flexsearch_redis_db
35+
mongo:
36+
image: mongo:latest
37+
restart: on-failure
38+
volumes:
39+
- mg-data:/data
40+
ports:
41+
- "27017:27017"
42+
container_name: flexsearch_mongo_db
43+
volumes:
44+
pg-data:
45+
driver: local
46+
ch-data:
47+
driver: local
48+
rd-data:
49+
driver: local
50+
mg-data:
51+
driver: local

0 commit comments

Comments
 (0)