6fc5abd81d
Signed-off-by: Michael Yuan <michael@secondstate.io>
27 lines
526 B
YAML
27 lines
526 B
YAML
services:
|
|
frontend:
|
|
image: nginx:alpine
|
|
ports:
|
|
- 8090:80
|
|
volumes:
|
|
- ./frontend:/usr/share/nginx/html
|
|
|
|
backend:
|
|
image: demo-microservice
|
|
build:
|
|
context: backend/
|
|
platforms:
|
|
- wasi/wasm32
|
|
ports:
|
|
- 8080:8080
|
|
environment:
|
|
DATABASE_URL: mysql://root:whalehello@db:3306/mysql
|
|
RUST_BACKTRACE: full
|
|
restart: unless-stopped
|
|
runtime: io.containerd.wasmedge.v1
|
|
|
|
db:
|
|
image: mariadb:10.9
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: whalehello
|