-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathcompose.yml
More file actions
91 lines (87 loc) · 2.41 KB
/
compose.yml
File metadata and controls
91 lines (87 loc) · 2.41 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
services:
db:
image: postgres
container_name: bookstore-db
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: p@ssw0rd
POSTGRES_DB: bookstore
volumes:
- "/var/lib/postgresql/data"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U user -d bookstore"]
interval: 10s
timeout: 5s
retries: 5
app:
build:
dockerfile: ./Dockerfile
target: host
container_name: bookstore-app
environment:
AWS_DEFAULT_REGION: us-east-1
RUNNING_ENVIRONMENT: Local
ASPNETCORE_URLS: "https://+"
ASPNETCORE_HTTPS_PORT: 5001
ASPNETCORE_Kestrel__Certificates__Default__Password: P@ssw0rd
ASPNETCORE_Kestrel__Certificates__Default__Path: /https/certificate.pfx
depends_on:
db:
condition: service_healthy
migrator:
condition: service_completed_successfully
ports:
- "5001:443"
healthcheck:
test: ["CMD", "curl", "-k -v", "https://localhost/swagger/index.html"]
interval: 10s
timeout: 5s
retries: 5
web:
build:
dockerfile: ./Dockerfile
target: web
container_name: bookstore-web
environment:
AWS_DEFAULT_REGION: us-east-1
RUNNING_ENVIRONMENT: Local
ASPNETCORE_URLS: "https://+"
ASPNETCORE_HTTPS_PORT: 5002
ASPNETCORE_Kestrel__Certificates__Default__Password: P@ssw0rd
ASPNETCORE_Kestrel__Certificates__Default__Path: /https/certificate.pfx
depends_on:
app:
condition: service_started
ports:
- "5002:443"
auth:
build:
dockerfile: ./Dockerfile
target: auth
container_name: bookstore-auth
environment:
AWS_DEFAULT_REGION: us-east-1
RUNNING_ENVIRONMENT: Local
ASPNETCORE_URLS: "https://+"
ASPNETCORE_HTTPS_PORT: 5003
ASPNETCORE_Kestrel__Certificates__Default__Password: P@ssw0rd
ASPNETCORE_Kestrel__Certificates__Default__Path: /https/certificate.pfx
depends_on:
app:
condition: service_started
ports:
- "5003:443"
migrator:
build:
dockerfile: ./Dockerfile
target: migrator
container_name: bookstore-migrator
environment:
AWS_DEFAULT_REGION: us-east-1
RUNNING_ENVIRONMENT: Local
depends_on:
db:
condition: service_healthy