35 lines
		
	
	
		
			901 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			901 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| services:
 | |
|   api:
 | |
|     image: git.prtsie.ru/prtsie/schengen-visa-{{BRANCH}}
 | |
|     container_name: visa-api-{{BRANCH}}
 | |
|     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-{{BRANCH}}
 | |
| 
 | |
|   postgres-db:
 | |
|     image: postgres:latest
 | |
|     container_name: visa-db-{{BRANCH}}
 | |
|     environment:
 | |
|       POSTGRES_USER: postgres
 | |
|       POSTGRES_PASSWORD: Qwerty123456!
 | |
|       POSTGRES_DATABASE: visa
 | |
|     networks:
 | |
|       - app-network-{{BRANCH}}
 | |
|     healthcheck:
 | |
|       test: ["CMD-SHELL", "pg_isready -U postgres -d visa"]
 | |
|       interval: 5s
 | |
|       timeout: 5s
 | |
|       retries: 10
 | |
|       start_period: 10s
 | |
| 
 | |
| networks:
 | |
|   app-network-{{BRANCH}}:
 | |
|     driver: bridge
 |