Selector/docker-compose.yml

43 lines
946 B
YAML
Raw Normal View History

version: "3.9"
2022-02-11 23:24:47 +00:00
services:
web:
image: sarsoo/selector-web:latest
2022-03-20 09:48:16 +00:00
restart: unless-stopped
2022-02-11 23:24:47 +00:00
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"
environment:
DOTNET_ENVIRONMENT: Production
2022-02-11 23:24:47 +00:00
cli:
image: sarsoo/selector-cli:latest
2022-03-20 09:48:16 +00:00
restart: unless-stopped
depends_on:
- database
- redis
volumes:
2022-02-13 20:21:27 +00:00
- "./Selector.CLI/appsettings.Production.json:/app/appsettings.Production.json"
environment:
DOTNET_ENVIRONMENT: Production
2022-02-11 23:24:47 +00:00
redis:
image: redis:alpine
2022-03-20 09:48:16 +00:00
restart: unless-stopped
ports:
- "6379:6379"
2022-02-11 23:24:47 +00:00
database:
image: postgres:14
2022-03-20 09:48:16 +00:00
restart: unless-stopped
ports:
- "5432:5432"
2022-02-13 20:21:27 +00:00
env_file: .env # set POSTGRES_USER, POSTGRES_PASSWORD, POSTGRES_DB
2022-02-27 21:53:27 +00:00
volumes:
- database-data:/var/lib/postgresql/data
volumes:
database-data: