Skip to content

Commit a632c15

Browse files
authored
chore: update docker compose to volume mount for local development (#174)
1 parent 34784ad commit a632c15

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ vendor/
2626
/compass
2727
config.yaml
2828
compass.yaml
29+
temp/

docker-compose.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ services:
77
discovery.type: single-node
88
networks:
99
- storage
10+
volumes:
11+
- ./temp/esdata:/usr/share/elasticsearch/data
12+
1013
postgres:
1114
ports:
1215
- 5432:5432
@@ -17,5 +20,8 @@ services:
1720
POSTGRES_DB: compass
1821
networks:
1922
- storage
20-
networks:
23+
volumes:
24+
- ./temp/pgdata:/var/lib/postgresql/data
25+
26+
networks:
2127
storage:

0 commit comments

Comments
 (0)