38 lines
813 B
YAML
38 lines
813 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
# Aplicação para teste local
|
|
bcards-test-app:
|
|
build: .
|
|
ports:
|
|
- "8080:8080"
|
|
environment:
|
|
- ASPNETCORE_ENVIRONMENT=Development
|
|
- SERVER_NAME=Local Development Server
|
|
- SERVER_COLOR=#28a745
|
|
networks:
|
|
- bcards-local
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
|
|
# NGINX para teste local do load balancer
|
|
nginx-local:
|
|
image: nginx:alpine
|
|
ports:
|
|
- "80:80"
|
|
volumes:
|
|
- ../nginx/nginx-local.conf:/etc/nginx/nginx.conf:ro
|
|
depends_on:
|
|
- bcards-test-app
|
|
networks:
|
|
- bcards-local
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
bcards-local:
|
|
driver: bridge |