Advertisement
Guest User

Untitled

a guest
Oct 1st, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. api:
  2. image: api
  3. container_name: api
  4. build:
  5. context: ./Api
  6. dockerfile: Dockerfile
  7. ports:
  8. - "8000:80"
  9. depends_on:
  10. - db
  11. db:
  12. image: "microsoft/mssql-server-linux"
  13. container_name: mssql
  14. environment:
  15. SA_PASSWORD: "YourStrong!Passw0rd"
  16. ACCEPT_EULA: "Y"
  17. MSSQL_PID: "Developer"
  18. ports:
  19. - "127.0.0.1:8001:1433"
  20.  
  21. {
  22. "ConnectionStrings": {
  23. "DefaultConnection": "server=127.0.0.1,8001;database=MyTestDb;user=sa;password=YourStrong!Passw0rd"
  24. }
  25. }
  26.  
  27. Database.EnsureCreated();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement