compose.yaml 671 B

12345678910111213141516171819202122
  1. services:
  2. web:
  3. build: app/aspnetapp
  4. ports:
  5. - 80:80
  6. db:
  7. environment:
  8. ACCEPT_EULA: "Y"
  9. SA_PASSWORD: example_123
  10. # mssql server image isn't available for arm64 architecture, so we use azure-sql instead
  11. image: mcr.microsoft.com/azure-sql-edge:1.0.4
  12. # If you really want to use MS SQL Server, uncomment the following line
  13. #image: mcr.microsoft.com/mssql/server
  14. restart: always
  15. healthcheck:
  16. test: ["CMD-SHELL", "/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P example_123 -Q 'SELECT 1' || exit 1"]
  17. interval: 10s
  18. retries: 10
  19. start_period: 10s
  20. timeout: 3s