Skip to content

Commit 3ae271d

Browse files
committed
include dev docker-compose
Signed-off-by: Ahmet Turkmen <f.ahmet.turkmen@icloud.com>
1 parent 4d928bf commit 3ae271d

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

docker-compose-dev.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
version: '3'
2+
services:
3+
server:
4+
container_name: server
5+
env_file:
6+
- .env
7+
build: .
8+
ports:
9+
- 50051:50051
10+
restart: on-failure
11+
depends_on:
12+
- postgres-db
13+
volumes:
14+
- ${CERTS_PATH}:/certs:ro # in production, change this CERTS_PATH to your certificate files folder
15+
- ${CONFIG_PATH}:/config.yml:ro # mount config file
16+
networks:
17+
- internal
18+
19+
postgres-db:
20+
image: postgres:alpine
21+
container_name: postgres
22+
command: postgres
23+
env_file:
24+
- .env
25+
ports:
26+
- '5432:5432'
27+
volumes:
28+
- data:/var/lib/postgresql/data
29+
networks:
30+
- internal
31+
32+
# Networks to be created to facilitate communication between containers
33+
volumes:
34+
data:
35+
networks:
36+
internal:
37+
driver: bridge

0 commit comments

Comments
 (0)