docker-compose.yml 511 B

12345678910111213141516171819202122232425
  1. services:
  2. frontend:
  3. image: nginx:alpine
  4. ports:
  5. - 8090:80
  6. volumes:
  7. - ./frontend:/usr/share/nginx/html
  8. backend:
  9. image: demo-microservice
  10. platform: wasi/wasm
  11. build:
  12. context: backend/
  13. ports:
  14. - 8080:8080
  15. environment:
  16. DATABASE_URL: mysql://root:whalehello@db:3306/mysql
  17. RUST_BACKTRACE: full
  18. restart: unless-stopped
  19. runtime: io.containerd.wasmedge.v1
  20. db:
  21. image: mariadb:10.9
  22. environment:
  23. MYSQL_ROOT_PASSWORD: whalehello