Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- api:
- image: api
- container_name: api
- build:
- context: ./Api
- dockerfile: Dockerfile
- ports:
- - "8000:80"
- depends_on:
- - db
- db:
- image: "microsoft/mssql-server-linux"
- container_name: mssql
- environment:
- SA_PASSWORD: "YourStrong!Passw0rd"
- ACCEPT_EULA: "Y"
- MSSQL_PID: "Developer"
- ports:
- - "127.0.0.1:8001:1433"
- {
- "ConnectionStrings": {
- "DefaultConnection": "server=127.0.0.1,8001;database=MyTestDb;user=sa;password=YourStrong!Passw0rd"
- }
- }
- Database.EnsureCreated();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement