Dockerfile и http
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-10-05 16:46:47 +03:00
parent 4e30f3e7a5
commit 81a01ae4ed
5 changed files with 40 additions and 4 deletions

36
Docker/docker-compose.yml Normal file
View File

@@ -0,0 +1,36 @@
services:
api:
image: prtsie/schengen-visa
container_name: visa-api
ports:
- "5000:5000"
depends_on:
postgres-db:
condition: service_healthy
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ConnectionStrings__connectionString=Host=postgres-db;Port=5432;Database=visa;Username=postgres;Password=Qwerty123456!
networks:
- app-network
restart: on-failure
postgres-db:
image: postgres:latest
container_name: visa-db
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ${POSTGRESPASS}
ports:
- "5432:5432"
networks:
- app-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d auth"]
interval: 5s
timeout: 5s
retries: 10
start_period: 10s
networks:
app-network:
driver: bridge