45 lines
1017 B
YAML
45 lines
1017 B
YAML
version: "3.9"
|
|
services:
|
|
web:
|
|
image: sarsoo/selector-web:latest
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8080:80"
|
|
depends_on:
|
|
- database
|
|
- redis
|
|
volumes:
|
|
- "./Selector.Web/appsettings.Production.json:/app/appsettings.Production.json"
|
|
- "./Selector.Web/log:/app/log"
|
|
environment:
|
|
DOTNET_ENVIRONMENT: Production
|
|
|
|
cli:
|
|
image: sarsoo/selector-cli:latest
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- database
|
|
- redis
|
|
volumes:
|
|
- "./Selector.CLI/appsettings.Production.json:/app/appsettings.Production.json"
|
|
- "./Selector.CLI/log:/app/log"
|
|
environment:
|
|
DOTNET_ENVIRONMENT: Production
|
|
|
|
redis:
|
|
image: redis:7
|
|
restart: unless-stopped
|
|
ports:
|
|
- "6379:6379"
|
|
database:
|
|
image: postgres:14
|
|
restart: unless-stopped
|
|
ports:
|
|
- "5432:5432"
|
|
env_file: .env # set POSTGRES_USER, POSTGRES_PASSWORD, POSTGRES_DB
|
|
volumes:
|
|
- database-data:/var/lib/postgresql/data
|
|
|
|
volumes:
|
|
database-data:
|