-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
52 lines (50 loc) · 1.3 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
40
41
42
43
44
45
46
47
48
49
50
51
52
version: '2.2'
services:
db:
image: mysql:latest
ports:
- "3306:3306"
healthcheck:
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
timeout: 20s
retries: 10
environment:
- MYSQL_USER=admin
- MYSQL_PASSWORD=admin
- MYSQL_ROOT_PASSWORD=admin
- MYSQL_DATABASE=eigr-functions-db
spawn-proxy:
image: eigr/spawn-proxy:1.0.0-rc.18
depends_on:
db:
condition: service_healthy
links:
- db
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9001/health" ]
interval: 10s
timeout: 5s
retries: 30
environment:
- PROXY_CLUSTER_STRATEGY=gossip
- SPAWN_USE_INTERNAL_NATS=false
- SPAWN_PUBSUB_ADAPTER=native
- PROXY_HTTP_PORT=9001
- PROXY_DATABASE_HOST=db
- PROXY_DATABASE_TYPE=mysql
- SPAWN_STATESTORE_KEY=3Jnb0hZiHIzHTOih7t2cTEPEpY98Tu1wvQkPfq/XwqE=
- USER_FUNCTION_HOST=springboot-user-function
- USER_FUNCTION_PORT=8099
ports:
- "9001:9001"
springboot-user-function:
image: eigr/spawn-springboot-examples:latest
restart: always
ports:
- "8099:8099"
environment:
- SPAWN_PROXY_PORT=9001
- SPAWN_ACTOR_SYSTEM=spawn-system
- SPAWN_PROXY_INTERFACE=spawn-proxy
links:
- spawn-proxy