forked from faasm/faasm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (53 loc) · 1.31 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
49
50
51
52
53
54
55
56
57
58
version: "3"
services:
redis-state:
image: faasm/redis:${FAASM_VERSION}
redis-queue:
image: faasm/redis:${FAASM_VERSION}
upload:
image: faasm/upload:${FAASM_VERSION}
ports:
- "8002:8002"
depends_on:
- redis-queue
- redis-state
volumes:
- ./machine-code/:/usr/local/faasm/object/
- ./wasm/:/usr/local/code/faasm/wasm/
environment:
- FUNCTION_STORAGE=local
- LOG_LEVEL=info
- REDIS_STATE_HOST=redis-state
- REDIS_QUEUE_HOST=redis-queue
- TF_CODEGEN=off
- PYTHON_CODEGEN=off
worker:
image: faasm/knative-worker:${FAASM_VERSION}
depends_on:
- upload
expose:
- "8080"
privileged: yes
volumes:
- ./machine-code/:/usr/local/faasm/object/
environment:
- FUNCTION_STORAGE=fileserver
- FILESERVER_URL=http://upload:8002
- LOG_LEVEL=info
- CGROUP_MODE=on
- NETNS_MODE=off
- REDIS_STATE_HOST=redis-state
- REDIS_QUEUE_HOST=redis-queue
- THREADS_PER_WORKER=20
- MAX_IN_FLIGHT_RATIO=1
- MAX_WORKERS_PER_FUNCTION=4
- GLOBAL_MESSAGE_TIMEOUT=600000
- CAPTURE_STDOUT=on
nginx:
image: nginx:latest
volumes:
- ./conf/nginx-local.conf:/etc/nginx/nginx.conf:ro
depends_on:
- worker
ports:
- "8080:8080"