-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (41 loc) · 1.09 KB
/
docker-compose.yml
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
38
39
40
41
42
43
44
version: "1"
services:
api:
container_name: api
build:
context: .
dockerfile: ./AutoDealer.API/Dockerfile
environment:
CONNECTIONSTRINGS__DEFAULT: Host=db; Port=5432; Database=autodealer; User ID=postgres; Password=password
ASPNETCORE_ENVIRONMENT: Production
ASPNETCORE_URLS: http://*:44357
ports:
- 4444:44357
volumes:
- ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro
links:
- pgsql
web:
container_name: web
build:
context: .
dockerfile: ./AutoDealer.Web/Dockerfile
environment:
CONNECTIONSTRINGS__DEFAULT: Host=db; Port=5432; Database=autodealer; User ID=postgres; Password=password
ASPNETCORE_ENVIRONMENT: Production
ASPNETCORE_URLS: http://*:44388
ports:
- 8888:44388
volumes:
- ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro
links:
- api
pgsql:
container_name: db
restart: always
image: postgres
environment:
POSTGRES_PASSWORD: password
POSTGRES_DB: autodealer
ports:
- 5454:5432