fn-dotnet/docker-compose.yml
fnkit dc136f5405
All checks were successful
/ deploy (push) Successful in 33s
initial commit - dotnet function
2026-02-17 16:45:14 +00:00

36 lines
898 B
YAML

# Docker Compose for FnKit function with gateway integration
# Requires: docker network create fnkit-network
# Requires: fnkit-gateway running (fnkit gateway init && fnkit gateway build && fnkit gateway start)
version: '3.8'
services:
fn-dotnet:
build: .
container_name: fn-dotnet
networks:
- fnkit-network
depends_on:
fnkit-gateway:
condition: service_started
restart: unless-stopped
# Uncomment to include gateway in this compose file
# fnkit-gateway:
# image: fnkit-gateway:latest
# container_name: fnkit-gateway
# ports:
# - "8080:8080"
# environment:
# - FNKIT_AUTH_TOKEN=${FNKIT_AUTH_TOKEN:-}
# networks:
# - fnkit-network
networks:
fnkit-network:
name: fnkit-network
external: true
# Usage:
# docker-compose up -d
# curl -H "Authorization: Bearer <token>" http://localhost:8080/fn-dotnet