-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
48 lines (46 loc) · 1.02 KB
/
docker-compose.yml
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
44
45
46
47
48
version: "3"
services:
grpc:
depends_on:
- db
container_name: grpc
image: esh2n/grapevineer-grpc:latest
ports:
- "8050:8050"
env_file:
- ".env"
grpc-gateway:
depends_on:
- grpc
- db
container_name: grpc-gateway
image: esh2n/grapevineer-grpc-gateway:latest
ports:
- "8080:8080"
env_file:
- ".env"
doc:
image: swaggerapi/swagger-ui
ports:
- "8081:8080"
environment:
SWAGGER_JSON: /gen/openapi/api_definition.swagger.json
BASE_URL: /
volumes:
- ./gen/openapi/api_definition.swagger.json:/gen/openapi/api_definition.swagger.json
db:
container_name: db
build:
context: .
dockerfile: ./build/postgresql/Dockerfile
environment:
- POSTGRES_DB=${DB_DATABASE}
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
volumes:
- db-store:/var/lib/postgresql/data
- ./infra/db/init:/docker-entrypoint-initdb.d
ports:
- ${DB_PORT}:5432
volumes:
db-store: