-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
74 lines (70 loc) · 2.11 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
include:
- docker-compose-db-redis.yml
- docker-compose-cdc.yml
services:
dialogporten-webapi-ingress:
image: nginx:1.27.2
ports:
- "7214:80"
volumes:
- ./nginx-webapi.conf:/etc/nginx/nginx.conf
depends_on:
- dialogporten-webapi
restart: always
dialogporten-webapi:
scale: 2
build:
context: .
dockerfile: src/Digdir.Domain.Dialogporten.WebApi/Dockerfile
restart: always
depends_on:
dialogporten-postgres:
condition: service_healthy
dialogporten-redis:
condition: service_healthy
dialogporten-migrations:
condition: service_completed_successfully
environment:
- Infrastructure:Redis:ConnectionString=dialogporten-redis:6379
- Infrastructure:DialogDbConnectionString=${DB_CONNECTION_STRING}
- Application:Dialogporten:BaseUri=http://localhost:7214
- Serilog__WriteTo__0__Name=Console
- Serilog__MinimumLevel__Default=Debug
- ASPNETCORE_URLS=http://+:8080
- ASPNETCORE_ENVIRONMENT=Development
volumes:
- ./.aspnet/https:/https
dialogporten-graphql-ingress:
image: nginx:1.27.2
ports:
- "7215:80"
volumes:
- ./nginx-graphql.conf:/etc/nginx/nginx.conf
depends_on:
- dialogporten-graphql
restart: always
dialogporten-graphql:
scale: 1
# todo: remove after the nginx ingress fixed
ports:
- "7220:8080"
build:
context: .
dockerfile: src/Digdir.Domain.Dialogporten.GraphQL/Dockerfile
restart: always
depends_on:
dialogporten-postgres:
condition: service_healthy
dialogporten-redis:
condition: service_healthy
dialogporten-migrations:
condition: service_completed_successfully
environment:
- Infrastructure:Redis:ConnectionString=dialogporten-redis:6379
- Infrastructure:DialogDbConnectionString=${DB_CONNECTION_STRING}
- Application:Dialogporten:BaseUri=http://localhost:7214
- Serilog__WriteTo__0__Name=Console
- Serilog__MinimumLevel__Default=Debug
- ASPNETCORE_ENVIRONMENT=Development
volumes:
- ./.aspnet/https:/https