-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (53 loc) · 1.44 KB
/
docker-compose.yml
File metadata and controls
56 lines (53 loc) · 1.44 KB
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
version: '3.8'
services:
gateway:
build:
context: .
dockerfile: Dockerfile
image: docker-faas/gateway:latest
container_name: docker-faas-gateway
ports:
- "8080:8080" # Gateway API
- "9090:9090" # Metrics
environment:
- GATEWAY_PORT=8080
- METRICS_PORT=9090
- FUNCTIONS_NETWORK=docker-faas-net
- GATEWAY_CONTAINER_NAME=docker-faas-gateway
- AUTH_ENABLED=true
- AUTH_USER=admin
- AUTH_PASSWORD=admin
# OpenFaaS compatibility for /function/* (set true for strict auth in prod)
- REQUIRE_AUTH_FOR_FUNCTIONS=false
- LOG_LEVEL=info
- STATE_DB_PATH=/data/docker-faas.db
- READ_TIMEOUT=60s
- WRITE_TIMEOUT=60s
- EXEC_TIMEOUT=60s
- DEFAULT_REPLICAS=1
- MAX_REPLICAS=10
# Debug settings - bind to localhost only for security
- DEBUG_BIND_ADDRESS=127.0.0.1
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- faas-data:/data
- faas-secrets:/var/openfaas/secrets
- ./web/static:/app/web/static:ro
healthcheck:
test: ["CMD", "curl", "-fsS", "http://localhost:8080/healthz"]
interval: 10s
timeout: 3s
retries: 3
start_period: 10s
networks:
- docker-faas-net
restart: unless-stopped
networks:
docker-faas-net:
name: docker-faas-net
driver: bridge
volumes:
faas-data:
name: docker-faas-data
faas-secrets:
name: docker-faas-secrets