-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (30 loc) · 921 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (30 loc) · 921 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# to run api and db in docker (debugger not possible): docker-compose up --build
# to run db in docker and api outside docker (debugger possible): docker-compose up data
# and if you have Docker Desktop, set in user secrets: "DatabaseConnection": "NotesDbPostgreSqlDockerDesktop"
# api accessible at localhost:44350 / 192.168.99.100:8000
# db accessible at localhost:5432 / 192.168.99.100:5432
version: '3.7'
services:
api:
build:
context: TheHub
image: thehubapi:1.0
depends_on:
- data
ports:
- 5001:80
networks:
- default
environment:
ConnectionStrings__AzureSql: Server=tcp:data,1433;Initial Catalog=TheHubDb;User ID=thehub;Password=Pass@word
data:
image: mcr.microsoft.com/mssql/server:2019-latest
ports:
- 1433:1433
networks:
- default
environment:
ACCEPT_EULA: 'Y'
SA_PASSWORD: Pass@word
networks:
default: