Files
faas/docker-compose.yml
Alex Ellis ea488cf742 - Extend stack to include a test function
- Allow _ char in routes
- Let Dockerfile shrink by coming from alpine
2017-01-09 17:35:46 +00:00

42 lines
1.1 KiB
YAML

version: "3"
services:
gateway:
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
ports:
- 8080:8080
image: alexellis2/faas-gateway:latest
networks:
- functions
prometheus:
image: quay.io/prometheus/prometheus:latest
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
command: "-config.file=/etc/prometheus/prometheus.yml -storage.local.path=/prometheus -storage.local.memory-chunks=10000"
ports:
- 9090:9090
depends_on:
- gateway
environment:
no_proxy: "gateway"
networks:
- functions
# Sample functions go here.
hubstats:
image: alexellis2/faas-dockerhubstats:latest
depends_on:
- gateway
networks:
- functions
environment:
no_proxy: "gateway"
https_proxy: $https_proxy
networks:
functions:
driver: overlay
# Docker does not support this option yet - maybe create outside of the stack and reference as "external"?
#attachable: true