updated compose.yaml
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
gts-federation:
|
||||
image: domoel/gts-federation:latest
|
||||
container_name: gts-federation
|
||||
user: 1026:100
|
||||
volumes:
|
||||
- /volume2/docker/social/federation/data:/app/data
|
||||
- /volume2/docker/social/federation/gts_holmirdas.py:/app/gts_holmirdas.py:ro
|
||||
- /volume2/docker/social/federation/rss_feeds.txt:/app/rss_feeds.txt:ro
|
||||
networks:
|
||||
- social
|
||||
restart: always
|
||||
env_file:
|
||||
- /volume2/docker/social/federation/.env
|
||||
|
||||
networks:
|
||||
social:
|
||||
external: true
|
||||
-32
@@ -1,32 +0,0 @@
|
||||
services:
|
||||
gts-holmirdas:
|
||||
build: .
|
||||
container_name: gts-holmirdas
|
||||
restart: unless-stopped
|
||||
|
||||
env_file:
|
||||
- .env
|
||||
|
||||
volumes:
|
||||
- ./data:/app/data
|
||||
- ./gts_holmirdas.py:/app/gts_holmirdas.py:ro
|
||||
- ./rss_feeds.txt:/app/rss_feeds.txt:ro
|
||||
|
||||
# Run every 3 hours (balanced frequency)
|
||||
entrypoint: >
|
||||
sh -c "
|
||||
while true; do
|
||||
echo 'Starting GTS-HolMirDas run...'
|
||||
python gts_holmirdas.py
|
||||
echo 'GTS-HolMirDas run completed. Sleeping for 1 hour...'
|
||||
sleep 3600
|
||||
done
|
||||
"
|
||||
|
||||
# Resource limits
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 512M
|
||||
reservations:
|
||||
memory: 256M
|
||||
Reference in New Issue
Block a user