-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (44 loc) · 1.31 KB
/
docker-compose.yml
File metadata and controls
48 lines (44 loc) · 1.31 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
version: "3.8"
services:
ambev.developerevaluation.webapi:
container_name: ambev_developer_evaluation_webapi
image: ${DOCKER_REGISTRY-}ambevdeveloperevaluationwebapi
build:
context: .
dockerfile: src/Ambev.DeveloperEvaluation.WebApi/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://+:8080
- ConnectionStrings__DefaultConnection=Host=ambev.developerevaluation.database;Database=developer_evaluation;Username=developer;Password=ev@luAt10n;Port=5432
ports:
- "8080:8080"
networks:
- ambev-network
depends_on:
ambev.developerevaluation.database:
condition: service_healthy
restart: unless-stopped
ambev.developerevaluation.database:
container_name: ambev_developer_evaluation_database
image: postgres:13
environment:
POSTGRES_DB: developer_evaluation
POSTGRES_USER: developer
POSTGRES_PASSWORD: ev@luAt10n
ports:
- "5432:5432"
networks:
- ambev-network
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U developer -d developer_evaluation"]
interval: 5s
timeout: 5s
retries: 5
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
ambev-network:
driver: bridge
volumes:
postgres_data: