forked from cloudstateio/samples-ui-chat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
31 lines (26 loc) · 1.31 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
version: "3.2"
services:
#------------------------------------------------------------------------
# Cloudstate proxy provides to the services implemented in "user-function"
# - state management
# - entrypoint for external access
# Each proxy is paired to a "user-function" and both should be within a same network namespace
#------------------------------------------------------------------------
cloudstate-proxy-chatui:
image: cloudstateio/cloudstate-proxy-dev-mode:0.5.1
environment:
USER_FUNCTION_PORT: 8080
ports: ["9003:9000"] # map the container (Cloudstate proxy) port 9000 to port 9003 on the host
#------------------------------------------------------------------------
# The "user-function" are Cloudstate-aware services
# which implement the business logic of the Chat application
#------------------------------------------------------------------------
chatui-userfunc:
image: lightbend-docker-registry.bintray.io/cloudstate-samples/chat-ui:latest
# use the same network stack than the container of the Cloudstate proxy
# Similar to a deployment on Kubernetes where
# the user container and its CS-Proxy sidecar are deployed in a same pod
network_mode: service:cloudstate-proxy-chatui
environment:
# enable additional logs
DEBUG: cloudstate*