run api with docker

This commit is contained in:
Anton Martynenko
2025-10-28 11:23:56 +01:00
parent f8d96ec40f
commit f676e510cd
3 changed files with 46 additions and 1 deletions
+19
View File
@@ -16,6 +16,25 @@ services:
timeout: 5s
retries: 5
api:
build:
context: .
dockerfile: SatelliteProvider.Api/Dockerfile
container_name: satellite-provider-api
ports:
- "18980:8080"
- "18981:8081"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://+:8080
- ConnectionStrings__DefaultConnection=Host=postgres;Port=5432;Database=satelliteprovider;Username=postgres;Password=postgres
volumes:
- ./tiles:/app/tiles
- ./ready:/app/ready
depends_on:
postgres:
condition: service_healthy
volumes:
postgres_data: