26 lines
609 B
YAML
26 lines
609 B
YAML
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
# Postgres — внешний (не в compose), см. ConnectionStrings__Default в .env.
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
ASPNETCORE_ENVIRONMENT: Production
|
|
ASPNETCORE_HTTP_PORTS: '8085'
|
|
healthcheck:
|
|
test: ['CMD', 'curl', '-f', 'http://localhost:8085/health']
|
|
interval: 15s
|
|
timeout: 5s
|
|
start_period: 20s
|
|
retries: 5
|
|
ports:
|
|
- '8085:8085'
|
|
restart: unless-stopped
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: '10m'
|
|
max-file: '3'
|