2022-02-13 12:57:51 +00:00
|
|
|
version: "3.9"
|
2022-02-11 23:24:47 +00:00
|
|
|
services:
|
|
|
|
web:
|
2022-02-13 17:12:00 +00:00
|
|
|
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"
|
2022-02-13 17:12:00 +00:00
|
|
|
depends_on:
|
|
|
|
- database
|
|
|
|
- redis
|
|
|
|
volumes:
|
2022-02-13 20:21:27 +00:00
|
|
|
- "./Selector.Web/appsettings.Production.json:/app/appsettings.Production.json"
|
2022-11-15 08:42:05 +00:00
|
|
|
- "./Selector.Web/log:/app/log"
|
2022-02-13 17:12:00 +00:00
|
|
|
environment:
|
|
|
|
DOTNET_ENVIRONMENT: Production
|
|
|
|
|
2022-02-11 23:24:47 +00:00
|
|
|
cli:
|
2022-02-13 17:12:00 +00:00
|
|
|
image: sarsoo/selector-cli:latest
|
2022-03-20 09:48:16 +00:00
|
|
|
restart: unless-stopped
|
2022-02-13 17:12:00 +00:00
|
|
|
depends_on:
|
|
|
|
- database
|
|
|
|
- redis
|
|
|
|
volumes:
|
2022-02-13 20:21:27 +00:00
|
|
|
- "./Selector.CLI/appsettings.Production.json:/app/appsettings.Production.json"
|
2022-11-15 08:42:05 +00:00
|
|
|
- "./Selector.CLI/log:/app/log"
|
2022-02-13 17:12:00 +00:00
|
|
|
environment:
|
|
|
|
DOTNET_ENVIRONMENT: Production
|
|
|
|
|
2022-02-11 23:24:47 +00:00
|
|
|
redis:
|
2022-11-08 20:14:22 +00:00
|
|
|
image: redis:7
|
2022-03-20 09:48:16 +00:00
|
|
|
restart: unless-stopped
|
2022-02-13 12:57:51 +00:00
|
|
|
ports:
|
|
|
|
- "6379:6379"
|
2022-02-11 23:24:47 +00:00
|
|
|
database:
|
2022-11-04 21:43:20 +00:00
|
|
|
image: postgres:14
|
2022-03-20 09:48:16 +00:00
|
|
|
restart: unless-stopped
|
2022-02-13 12:57:51 +00:00
|
|
|
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:
|