We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d928bf commit 3ae271dCopy full SHA for 3ae271d
docker-compose-dev.yml
@@ -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
24
25
26
+ - '5432:5432'
27
28
+ - data:/var/lib/postgresql/data
29
30
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