-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (41 loc) · 1.1 KB
/
Copy pathdocker-compose.yml
File metadata and controls
43 lines (41 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
version: "3"
volumes:
db_volume: {}
services:
db:
container_name: transign_db
restart: always
image: postgres
volumes:
- db_volume:/var/lib/postgresql/data
environment:
- POSTGRES_DB=database
- POSTGRES_USER=transign
- POSTGRES_PASSWORD=transignpassword
- POSTGRES_INITDB_ARGS=--encoding=UTF-8
transign_grpc:
container_name: transign_grpc
restart: always
depends_on:
- "db"
build:
context: .
dockerfile: ./cmd/server/Dockerfile
environment:
- DB_HOST=transign_db
- DB_USERNAME=transign
- DB_PASSWORD=transignpassword
ports:
- "8080:8080"
transign_httpproxy:
container_name: transign_httpproxy
restart: always
depends_on:
- "transign_grpc"
build:
context: .
dockerfile: ./cmd/httpproxy/Dockerfile
environment:
- "PROXY_DESTINATION=transign_grpc:8080"
ports:
- "8000:8000"