2022-02-13 17:12:00 +00:00
|
|
|
version: "3.9"
|
|
|
|
services:
|
|
|
|
web:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile.Web
|
|
|
|
ports:
|
|
|
|
- "8080:80"
|
|
|
|
depends_on:
|
|
|
|
- database
|
|
|
|
- redis
|
|
|
|
volumes:
|
2022-02-13 20:21:27 +00:00
|
|
|
- "./Selector.Web/appsettings.Production.json:/app/appsettings.Production.json"
|
2022-02-13 17:12:00 +00:00
|
|
|
environment:
|
|
|
|
DOTNET_ENVIRONMENT: Production
|
|
|
|
|
|
|
|
cli:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile.CLI
|
|
|
|
depends_on:
|
|
|
|
- database
|
|
|
|
- redis
|
|
|
|
volumes:
|
2022-02-13 20:21:27 +00:00
|
|
|
- "./Selector.CLI/appsettings.Production.json:/app/appsettings.Production.json"
|
2022-02-13 17:12:00 +00:00
|
|
|
environment:
|
|
|
|
DOTNET_ENVIRONMENT: Production
|
|
|
|
|
|
|
|
redis:
|
|
|
|
image: redis:alpine
|
|
|
|
ports:
|
|
|
|
- "6379:6379"
|
|
|
|
database:
|
|
|
|
image: postgres
|
|
|
|
ports:
|
|
|
|
- "5432:5432"
|
2022-02-13 20:21:27 +00:00
|
|
|
env_file: .env # set POSTGRES_USER, POSTGRES_PASSWORD, POSTGRES_DB
|