-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (48 loc) · 1.52 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
45
46
47
48
49
version: '3.5'
services:
openiddict-api:
container_name: openiddict-api
image: openiddict-api
build:
context: .
dockerfile: ./src/OpeniddictSample.ApiServer/Dockerfile
target: openiddict-api
ports:
- "5001:80"
- "5002:443"
environment:
ASPNETCORE_ENVIRONMENT: Development
ASPNETCORE_HTTP_PORTS: 80
ASPNETCORE_HTTPS_PORTS: 443
IDENTITYPROVIDERURL: https://localhost:5004
volumes:
- ${APPDATA}/Microsoft/UserSecrets:/home/app/.microsoft/usersecrets:ro
- ${APPDATA}/ASP.NET/Https:/home/app/.aspnet/https:ro
openiddict-id:
container_name: openiddict-id
image: openiddict-id
build:
context: .
dockerfile: ./src/OpeniddictSample.OpeniddictServer/Dockerfile
target: openiddict-id
ports:
- "5003:80"
- "5004:443"
environment:
ASPNETCORE_ENVIRONMENT: Development
ASPNETCORE_HTTP_PORTS: 80
ASPNETCORE_HTTPS_PORTS: 443
CONNECTIONSTRINGS__OPENIDDICTSERVERDB: "Host=openiddict-id-db;Port=5432;Database=openiddict_sample_db;Username=dev;Password=dev;Include Error Detail=true"
depends_on:
- openiddict-id-db
volumes:
- ${APPDATA}/Microsoft/UserSecrets:/home/app/.microsoft/usersecrets:ro
- ${APPDATA}/ASP.NET/Https:/home/app/.aspnet/https:ro
openiddict-id-db:
container_name: openiddict-id-db
image: postgres:16
ports:
- "5432:5432"
environment:
POSTGRES_USER: dev
POSTGRES_PASSWORD: dev