-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (63 loc) · 2.02 KB
/
docker-compose.yml
File metadata and controls
65 lines (63 loc) · 2.02 KB
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
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:
- "5002:80"
- "5003:443"
environment:
- CONNECTIONSTRINGS__JOBSERVICE=server=postgres;port=5432;user id=postgres;password=Password12!;database=JobService;
# - CONNECTIONSTRINGS__AZURESERVICEBUS=
- 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=5003
- DATA_CENTER=EAST
volumes:
- ~/.aspnet/https:/https:ro
jobsagas:
restart: on-failure
container_name: "JobService.Sagas"
image: jobservice/sagas
depends_on:
postgres:
condition: service_healthy
build:
context: .
dockerfile: ./src/JobService.Sagas/Dockerfile
ports:
- "5004:80"
- "5005:443"
environment:
- CONNECTIONSTRINGS__JOBSERVICE=server=postgres;port=5432;user id=postgres;password=Password12!;database=JobService;
# - CONNECTIONSTRINGS__AZURESERVICEBUS=
- 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=5005
- DATA_CENTER=EAST
volumes:
- ~/.aspnet/https:/https:ro