Skip to content

Commit 7018c4c

Browse files
authored
update docker-compose.yml to support the comunnication between docker containers (#11)
1 parent b6de588 commit 7018c4c

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

docker-compose.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,29 @@ services:
55
build:
66
context: .
77
dockerfile: ./docker/Dockerfile
8+
environment:
9+
- DATABASE_URL=postgres://postgres:postgres@postgres:5432/postgres
10+
- ES_HOST=http://elasticsearch:9200
811
ports:
912
- '3000:3000'
13+
depends_on:
14+
- postgres
15+
- elasticsearch
16+
restart: always
17+
18+
19+
postgres:
20+
image: postgres
21+
environment:
22+
POSTGRES_USER: postgres
23+
POSTGRES_PASSWORD: postgres
24+
ports:
25+
- 5432:5432
26+
27+
elasticsearch:
28+
image: docker.elastic.co/elasticsearch/elasticsearch:7.9.2
29+
environment:
30+
- discovery.type=single-node
31+
ports:
32+
- 9200:9200
33+

0 commit comments

Comments
 (0)