ci: add Forgejo Actions CI/CD pipeline for build, push and prod deploy
All checks were successful
CI/CD Pipeline / build-and-deploy (push) Successful in 7m3s
All checks were successful
CI/CD Pipeline / build-and-deploy (push) Successful in 7m3s
Mirrors the LichessStatTgWeb pipeline: build all 7 service images, push to the Gitea registry, transfer to the prod host via docker save/load (registry isn't reachable from the external VPS), and redeploy with docker-compose.prod.yml.
This commit is contained in:
parent
4d575059b0
commit
ab703e4bd6
3 changed files with 211 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
services:
|
||||
bot:
|
||||
build: .
|
||||
image: 192.168.8.174:3000/vrubel/video-bot:latest
|
||||
container_name: video_download_bot
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
|
|
@ -22,6 +23,7 @@ services:
|
|||
|
||||
admin_bot:
|
||||
build: .
|
||||
image: 192.168.8.174:3000/vrubel/video-admin-bot:latest
|
||||
container_name: admin_bot
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
|
|
@ -32,3 +34,64 @@ services:
|
|||
- ./data:/app/data:Z
|
||||
network_mode: host
|
||||
command: python admin_bot.py
|
||||
|
||||
youtube-downloader:
|
||||
build: ./youtube-downloader
|
||||
image: 192.168.8.174:3000/vrubel/video-youtube:latest
|
||||
container_name: youtube_downloader_service
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./youtube-downloader/downloads:/app/downloads
|
||||
environment:
|
||||
- YOUTUBE_COOKIES_FILE=/app/youtube_cookies.txt
|
||||
- PORT=5557
|
||||
network_mode: host
|
||||
|
||||
instagram-downloader:
|
||||
build: ./instagram-downloader
|
||||
image: 192.168.8.174:3000/vrubel/video-instagram:latest
|
||||
container_name: instagram_downloader_service
|
||||
restart: unless-stopped
|
||||
network_mode: host
|
||||
volumes:
|
||||
- ./instagram-downloader/downloads:/app/downloads
|
||||
environment:
|
||||
- INSTAGRAM_COOKIES_FILE=/app/instagram_cookies.txt
|
||||
- PORT=5556
|
||||
|
||||
vk-downloader:
|
||||
build: ./vk-downloader
|
||||
image: 192.168.8.174:3000/vrubel/video-vk:latest
|
||||
container_name: vk_downloader_service
|
||||
restart: unless-stopped
|
||||
network_mode: host
|
||||
volumes:
|
||||
- ./vk-downloader/downloads:/app/downloads
|
||||
environment:
|
||||
- PORT=5555
|
||||
- GUNICORN_WORKERS=2
|
||||
- GUNICORN_THREADS=4
|
||||
- GUNICORN_TIMEOUT=360
|
||||
- GUNICORN_KEEP_ALIVE=5
|
||||
|
||||
yapfiles-downloader:
|
||||
build: ./yapfiles-downloader
|
||||
image: 192.168.8.174:3000/vrubel/video-yapfiles:latest
|
||||
container_name: yapfiles_downloader_service
|
||||
restart: unless-stopped
|
||||
network_mode: host
|
||||
volumes:
|
||||
- ./yapfiles-downloader/downloads:/app/downloads
|
||||
environment:
|
||||
- PORT=5558
|
||||
|
||||
tiktok-downloader:
|
||||
build: ./tiktok-downloader
|
||||
image: 192.168.8.174:3000/vrubel/video-tiktok:latest
|
||||
container_name: tiktok_downloader_service
|
||||
restart: unless-stopped
|
||||
network_mode: host
|
||||
volumes:
|
||||
- ./tiktok-downloader/downloads:/app/downloads
|
||||
environment:
|
||||
- PORT=5559
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue