-
Notifications
You must be signed in to change notification settings - Fork 26
/
docker-compose.yml
39 lines (38 loc) · 1.17 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
services:
postgres:
container_name: "JobService.Postgres"
image: "postgres:16"
environment:
- "POSTGRES_USER=postgres"
- "POSTGRES_PASSWORD=Password12!"
- "POSTGRES_DB=JobService"
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: "JobService.Service"
image: jobservice/service
depends_on:
postgres:
condition: service_healthy
build:
context: .
dockerfile: ./src/JobService.Service/Dockerfile
ports:
- "5000:80"
- "5001:443"
environment:
- CONNECTIONSTRINGS__JOBSERVICE=server=postgres;port=5432;user id=postgres;password=Password12!;database=JobService;
- 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
- DATA_CENTER=EAST
volumes:
- ~/.aspnet/https:/https:ro