-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (39 loc) · 1.29 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
services:
postgres:
container_name: "BounceMonitor.Postgres"
image: "postgres:16"
environment:
- "POSTGRES_USER=postgres"
- "POSTGRES_PASSWORD=Password12!"
- "POSTGRES_DB=BounceMonitor"
ports:
- "5432:5432"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
interval: 5s
timeout: 10s
retries: 10
jobservice:
restart: on-failure
container_name: "BounceMonitor.Service"
image: bouncemonitor/service
depends_on:
postgres:
condition: service_healthy
build:
context: .
dockerfile: ./src/BounceMonitor.Service/Dockerfile
ports:
- "5000:80"
- "5001:443"
environment:
- CONNECTIONSTRINGS__BOUNCEMONITOR=Host=postgres;port=5432;Username=postgres;Password=Password12!;database=BounceMonitor;
- TRANSPORTOPTIONS__ACCESSKEY=${TRANSPORTOPTIONS__ACCESSKEY}
- TRANSPORTOPTIONS__SECRETKEY=${TRANSPORTOPTIONS__SECRETKEY}
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=https://+:443;http://+:80
- ASPNETCORE_Kestrel__Certificates__Default__Password=Passw0rd
- ASPNETCORE_Kestrel__Certificates__Default__Path=/https/aspnetapp.pfx
- ASPNETCORE_HTTPS_PORT=5001
volumes:
- ~/.aspnet/https:/https:ro