disable actions
Some checks failed
Build and Publish Docker Images / security-scan (push) Has been cancelled
Build and Publish Docker Images / notify (push) Has been cancelled
Build and Publish Docker Images / build-and-push (push) Has been cancelled
Test Docker Compose Setup / lint-dockerfiles (push) Has been cancelled
Test Docker Compose Setup / validate-compose (push) Has been cancelled
Test Docker Compose Setup / test-compose (push) Has been cancelled
Some checks failed
Build and Publish Docker Images / security-scan (push) Has been cancelled
Build and Publish Docker Images / notify (push) Has been cancelled
Build and Publish Docker Images / build-and-push (push) Has been cancelled
Test Docker Compose Setup / lint-dockerfiles (push) Has been cancelled
Test Docker Compose Setup / validate-compose (push) Has been cancelled
Test Docker Compose Setup / test-compose (push) Has been cancelled
This commit is contained in:
51
docker-compose.portainer.yml
Normal file
51
docker-compose.portainer.yml
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
services:
|
||||||
|
# Discord Bot Service
|
||||||
|
discord-bot:
|
||||||
|
build:
|
||||||
|
context: ./Bot
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
container_name: uptime-kuma-discord-bot
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
- DISCORD_TOKEN=${DISCORD_TOKEN}
|
||||||
|
- GUILD_ID=${GUILD_ID}
|
||||||
|
- CHANNEL_ID=${CHANNEL_ID}
|
||||||
|
- CLIENT_ID=${CLIENT_ID}
|
||||||
|
- UPDATE_TIME=${UPDATE_TIME:-30}
|
||||||
|
- BACKEND_URL=http://web-backend:80/back-end.php
|
||||||
|
- UPTIME_KUMA_URL=${UPTIME_KUMA_URL}
|
||||||
|
depends_on:
|
||||||
|
- web-backend
|
||||||
|
networks:
|
||||||
|
- uptime-kuma-network
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "node", "-e", "console.log('Bot is running')"]
|
||||||
|
interval: 30s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 3
|
||||||
|
start_period: 40s
|
||||||
|
|
||||||
|
# PHP Web Backend Service
|
||||||
|
web-backend:
|
||||||
|
build:
|
||||||
|
context: ./Web
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
container_name: uptime-kuma-web-backend
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
- UPTIME_KUMA_URL=${UPTIME_KUMA_URL}
|
||||||
|
- UPTIME_KUMA_API_KEY=${UPTIME_KUMA_API_KEY}
|
||||||
|
ports:
|
||||||
|
- "8080:80"
|
||||||
|
networks:
|
||||||
|
- uptime-kuma-network
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "curl", "-f", "http://localhost/back-end.php"]
|
||||||
|
interval: 30s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 3
|
||||||
|
start_period: 10s
|
||||||
|
|
||||||
|
networks:
|
||||||
|
uptime-kuma-network:
|
||||||
|
driver: bridge
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
version: '3.8'
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
# Discord Bot Service
|
# Discord Bot Service
|
||||||
discord-bot:
|
discord-bot:
|
||||||
@@ -20,8 +18,6 @@ services:
|
|||||||
- web-backend
|
- web-backend
|
||||||
networks:
|
networks:
|
||||||
- uptime-kuma-network
|
- uptime-kuma-network
|
||||||
volumes:
|
|
||||||
- ./Bot/config.json:/app/config.json:ro
|
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "node", "-e", "console.log('Bot is running')"]
|
test: ["CMD", "node", "-e", "console.log('Bot is running')"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
@@ -43,8 +39,6 @@ services:
|
|||||||
- "8080:80"
|
- "8080:80"
|
||||||
networks:
|
networks:
|
||||||
- uptime-kuma-network
|
- uptime-kuma-network
|
||||||
volumes:
|
|
||||||
- ./Web/back-end.php:/var/www/html/back-end.php:ro
|
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost/back-end.php"]
|
test: ["CMD", "curl", "-f", "http://localhost/back-end.php"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
@@ -56,6 +50,3 @@ networks:
|
|||||||
uptime-kuma-network:
|
uptime-kuma-network:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
|
|
||||||
volumes:
|
|
||||||
bot-config:
|
|
||||||
web-config:
|
|
||||||
|
|||||||
Reference in New Issue
Block a user