Add TeleBot Hostinger deployment configuration with source build
This commit is contained in:
43
TeleBot/docker-compose.hostinger.yml
Normal file
43
TeleBot/docker-compose.hostinger.yml
Normal file
@@ -0,0 +1,43 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
telebot:
|
||||
build:
|
||||
context: ../
|
||||
dockerfile: TeleBot/TeleBot/Dockerfile
|
||||
image: telebot:latest
|
||||
container_name: telebot
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- ASPNETCORE_ENVIRONMENT=Production
|
||||
- TelegramBot__BotToken=${BOT_TOKEN}
|
||||
- TelegramBot__WebhookUrl=${WEBHOOK_URL}
|
||||
- TelegramBot__UseWebhook=false
|
||||
- LittleShopApi__BaseUrl=http://littleshop-admin:8080
|
||||
- LittleShopApi__ApiKey=${LITTLESHOP_API_KEY}
|
||||
- Logging__LogLevel__Default=Information
|
||||
- Logging__LogLevel__Microsoft=Warning
|
||||
- Logging__LogLevel__Microsoft.Hosting.Lifetime=Information
|
||||
volumes:
|
||||
- ./logs:/app/logs
|
||||
- ./data:/app/data
|
||||
- ./image_cache:/app/image_cache
|
||||
networks:
|
||||
- littleshop-network
|
||||
depends_on:
|
||||
- littleshop-admin
|
||||
healthcheck:
|
||||
test: ["CMD", "pgrep", "-f", "dotnet.*TeleBot"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 60s
|
||||
|
||||
littleshop-admin:
|
||||
external: true
|
||||
name: littleshop-admin
|
||||
|
||||
networks:
|
||||
littleshop-network:
|
||||
external: true
|
||||
name: littleshop-network
|
||||
Reference in New Issue
Block a user