-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (31 loc) · 784 Bytes
/
docker-compose.yml
File metadata and controls
32 lines (31 loc) · 784 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
version: '3.8'
name: product-crud
services:
api:
container_name: product-api
image: products-crud-api:latest
environment:
- ASPNETCORE_ENVIRONMENT=docker
- ASPNETCORE_URLS=http://+:80
ports:
- 80:80
depends_on:
postgres:
condition: service_healthy
postgres:
container_name: postgres
image: postgres:15-alpine
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=admin
ports:
- 5432:5432
volumes:
- postgres-data:/data/db
healthcheck:
test: ["CMD-SHELL", "pg_isready -U admin"]
interval: 10s
timeout: 5s
retries: 5
volumes:
postgres-data: