-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (40 loc) · 1022 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (40 loc) · 1022 Bytes
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
version: "3.9"
services:
db:
image: postgres:15
restart: unless-stopped
environment:
POSTGRES_USER: biogenom
POSTGRES_PASSWORD: biogenom_pass
POSTGRES_DB: biogenomdb
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5434:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d biogenomdb"]
interval: 10s
timeout: 5s
retries: 5
api:
build:
context: .
dockerfile: Biogenom.Api/Dockerfile
args:
CONFIGURATION: Release
depends_on:
- db
environment:
ASPNETCORE_ENVIRONMENT: Development
ASPNETCORE_URLS: http://+:8080
ConnectionStrings__DefaultConnection: "Host=db;Port=5432;Database=biogenomdb;Username=biogenom;Password=biogenom_pass"
ports:
- "8080:8080"
restart: on-failure
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8080/ || exit 1"]
interval: 10s
timeout: 5s
retries: 5
volumes:
pgdata: