38 lines
756 B
YAML
38 lines
756 B
YAML
version: "3.9"
|
|
services:
|
|
web:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.Web
|
|
ports:
|
|
- "8080:80"
|
|
depends_on:
|
|
- database
|
|
- redis
|
|
volumes:
|
|
- "./Selector.Web/appsettings.Production.json:/appsettings.Production.json"
|
|
environment:
|
|
DOTNET_ENVIRONMENT: Production
|
|
|
|
cli:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.CLI
|
|
depends_on:
|
|
- database
|
|
- redis
|
|
volumes:
|
|
- "./Selector.CLI/appsettings.Production.json:/appsettings.Production.json"
|
|
environment:
|
|
DOTNET_ENVIRONMENT: Production
|
|
|
|
redis:
|
|
image: redis:alpine
|
|
ports:
|
|
- "6379:6379"
|
|
database:
|
|
image: postgres
|
|
ports:
|
|
- "5432:5432"
|
|
env_file: .env # set POSTGRES_PASSWORD
|