Skip to content

Instantly share code, notes, and snippets.

@0xE282B0
Created March 3, 2023 08:36
Show Gist options
  • Save 0xE282B0/1021b5e2cd696a00c37ebc3b78e17c3d to your computer and use it in GitHub Desktop.
Save 0xE282B0/1021b5e2cd696a00c37ebc3b78e17c3d to your computer and use it in GitHub Desktop.
Run Spin application with docker-compose
# Prerequisites:
# - Latest Docker Desktop
# - KWasm extension: https://open.docker.com/extensions/marketplace?extensionId=0xe282b0/kwasm-docker-desktop
services:
app:
image: felipecruz/tinygo-key-value:latest
command:
- /
platform: wasi/wasm
runtime: io.containerd.spin.v1
ports:
- 8080:80
# Set a Key:
# curl localhost:8080/test -POST -d "Hello,KV"
# Get a key:
# curl localhost:8080/test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment