Skip to content

Commit

Permalink
Merge pull request #334 from mnaamani/main-production
Browse files Browse the repository at this point in the history
Update main branch with changes done on production host
  • Loading branch information
mnaamani authored Oct 4, 2024
2 parents e2972c7 + 24a14b5 commit 79018e7
Show file tree
Hide file tree
Showing 49 changed files with 17,979 additions and 869 deletions.
22 changes: 11 additions & 11 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ sync:
enable: true
downloadsDir: ./local/data
intervals: # in minutes
youtubePolling: 30
contentProcessing: 1
youtubePolling: 1440 # 24 hours
contentProcessing: 5
limits:
dailyApiQuota:
sync: 9500
signup: 500
maxConcurrentDownloads: 50
maxConcurrentUploads: 50
maxConcurrentDownloads: 2
maxConcurrentUploads: 20
createVideoTxBatchSize: 10
pendingDownloadTimeoutSec: 600 # 10 mins
storage: 100G
pendingDownloadTimeoutSec: 3600 # 1 hour
storage: 1000G
logs:
file:
level: debug
Expand Down Expand Up @@ -66,11 +66,11 @@ joystream:
creatorOnboardingRequirements:
# ! Production values
minimumSubscribersCount: 50
minimumVideosCount: 10
minimumVideoAgeHours: 720 # (24 hours x 30 days) 1 month
minimumChannelAgeHours: 2160 # (3 x 24 hours x 30 days) 3 months
minimumVideosPerMonth: 1
monthsToConsider: 1
minimumVideosCount: 2
minimumVideoAgeHours: 0 # (24 hours x 30 days) 1 month
minimumChannelAgeHours: 720 # (3 x 24 hours x 30 days) 3 months
minimumVideosPerMonth: 0
monthsToConsider: 0
# ! Development values
# minimumSubscribersCount: 1
# minimumVideosCount: 1
Expand Down
22 changes: 21 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ services:
# since docker-compose does not support creating bind-mount volume with empty path.
- ${YT_SYNCH__YOUTUBE__ADC_KEY_FILE_PATH:-./package.json}:${YT_SYNCH__YOUTUBE__ADC_KEY_FILE_PATH:-/package.json}:ro
# mount the AWS credentials file to docker container home directory
- ~/.aws/:/root/.aws:ro
- ~/.aws/:/root/.aws:ro # ? Not needed?
env_file:
- .env
environment:
Expand Down Expand Up @@ -44,6 +44,7 @@ services:
- 127.0.0.1:${YT_SYNCH__HTTP_API__PORT}:${YT_SYNCH__HTTP_API__PORT}
networks:
- youtube-synch
- ip6net
command: ['./scripts/start-youtube-synch.sh', '--service', 'httpApi']

youtube-synch_sync:
Expand Down Expand Up @@ -91,6 +92,7 @@ services:
# YT_SYNCH__JOYSTREAM__FAUCET__CAPTCHA_BYPASS_KEY: ${YT_SYNCH__JOYSTREAM__FAUCET__CAPTCHA_BYPASS_KEY}
networks:
- youtube-synch
- ip6net
command: ['./bin/run', 'start', '--service', 'sync']

redis:
Expand All @@ -104,6 +106,19 @@ services:
volumes:
- redis-data:/data

# ipv6-assigner:
# image: node:18
# container_name: ipv6-assigner
# working_dir: /ipv6-assigner
# env_file:
# # relative to working directory where docker-compose was run from
# - .env
# volumes:
# - .:/ipv6-assigner
# - ~/.aws/:/root/.aws:ro
# restart: on-failure
# command: sh -c "npx ts-node src/utils/assignIpv6Adress.ts"

volumes:
logs:
driver: local
Expand All @@ -115,3 +130,8 @@ volumes:
networks:
youtube-synch:
name: youtube-synch
ip6net:
enable_ipv6: true
ipam:
config:
- subnet: 2001:db8::/64
Loading

0 comments on commit 79018e7

Please sign in to comment.