26 lines
511 B
YAML
26 lines
511 B
YAML
|
services:
|
||
|
frontend:
|
||
|
image: nginx:alpine
|
||
|
ports:
|
||
|
- 8090:80
|
||
|
volumes:
|
||
|
- ./frontend:/usr/share/nginx/html
|
||
|
|
||
|
backend:
|
||
|
image: demo-microservice
|
||
|
platform: wasi/wasm
|
||
|
build:
|
||
|
context: backend/
|
||
|
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
|