forked from coopnorge/interview-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
39 lines (38 loc) · 1.07 KB
/
docker-compose.yaml
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
version: "3.7"
services:
# Update docker compose to run your server
# Don't forget own Dockerfile
# Port must be exposed as well, Go compiled and Executed
interview_backend_coop_logistics_client:
build:
context: .
dockerfile: devtools/Dockerfile-Project
container_name: interview_backend_coop_logistics_client
environment:
- CLIENT_SERVICE_HOST="0.0.0.0"
- CLIENT_SERVICE_PORT="50051"
# Supported transports: "gRPC" or "HTTP"
- CLIENT_TRANSPORT_TYPE="gRPC"
# Used for HTTP protocol: "https" or "http"
- CLIENT_HTTP_SCHEME="http"
networks:
- coop-norge-interview-network
# Coop internal documentation
techdocs:
build:
context: docker-compose
dockerfile: Dockerfile
target: techdocs
working_dir: /srv/workspace
volumes:
- .:/srv/workspace:z
- ${XDG_CACHE_HOME:-xdg-cache-home}:/root/.cache
ports:
- "127.0.0.1:3000:3000/tcp"
- "127.0.0.1:8000:8000/tcp"
command: serve
volumes:
xdg-cache-home: { }
nothing: { }
networks:
coop-norge-interview-network: