Created
March 3, 2023 08:36
-
-
Save 0xE282B0/1021b5e2cd696a00c37ebc3b78e17c3d to your computer and use it in GitHub Desktop.
Run Spin application with docker-compose
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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