-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
36 lines (34 loc) · 750 Bytes
/
Copy pathcompose.yaml
File metadata and controls
36 lines (34 loc) · 750 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
services:
backend.database:
image: postgres:alpine
container_name: backend.database
environment:
- POSTGRES_DB=BackendAPI
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- postgres_data:/var/lib/postgresql
ports:
- "5433:5432"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 5s
timeout: 5s
retries: 5
###
backend.webapi:
image: webapi
container_name: backend.api
build:
context: .
dockerfile: WebAPI/Dockerfile
ports:
- "5000:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Production
depends_on:
- backend.database
restart: unless-stopped
###
volumes:
postgres_data: