[5 Minutes Docker] Deploy FreshRSS Utilizing Docker Run Command and Deploy To Fly.io – CyberSecurity Memo


Extra sources are billed on the usage-based pricing detailed under.

App/Machine Sort      CPU(s)                  RAM                Worth
shared-cpu-1x 1           shared                    256MB             $0.0000008/s ($1.94/mo)

Mainly for home windows, you simply have to run following command from administrator’s powershell window:

1 Signal Up for Fly.io and Register

You should use your github account to log in or use an e mail account to enroll

You will want so as to add your bank card without cost credit score allowances, else you’ll get an error message when do deployment:

PS C:UsersWDAGUtilityAccount> fly launch
An present fly.toml file was discovered for app freshrss51
App just isn't working, deploy...
==> Constructing picture
Looking for picture 'freshrss/freshrss:1.20.1' remotely...
picture discovered: img_y7nxpkrd5j2v8w25
==> Creating launch
Error We'd like your cost data to proceed! Add a bank card or purchase credit score: https://fly.io/dashboard/freshrss51sec/billing

2 Signal into your Fly.io account by typing flyctl auth login

PS C:UsersWDAGUtilityAccount> flyctl auth login
Opening https://fly.io/app/auth/cli/8e426809a69c7d38e2ca77e0f62ae57 ...

Ready for session... Accomplished
efficiently logged in as [email protected]

3 Create fly.toml file. You should use fly launch command to auto-generate one , then use notepad edit it with comply with related format

A very powerful half is to alter app title, which have to be uniqe. 

# fly.toml file generated for freshrss51 on 2023-01-24T20:14:49-05:00

app = "freshrss51"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []

[build]
  picture = "freshrss/freshrss:1.20.1"

[env]
  CRON_MIN='*/20'

[mounts]
  supply="freshrss51sec_data"
  vacation spot="/var/www/FreshRSS/information"

[experimental]
  allowed_public_ports = []
  auto_rollback = true

[[services]]
  http_checks = []
  internal_port = 80
  processes = ["app"]
  protocol = "tcp"
  script_checks = []
  [services.concurrency]
    hard_limit = 25
    soft_limit = 20
    sort = "connections"

  [[services.ports]]
    force_https = true
    handlers = ["http"]
    port = 80

  [[services.ports]]
    handlers = ["tls", "http"]
    port = 443

  [[services.tcp_checks]]
    grace_period = "1s"
    interval = "15s"
    restart_limit = 0
    timeout = "2s"

4 After created fly.toml file, you’ll be able to create a persisting information quantity utilizing the command 

  • fly volumes create freshrss_data –measurement 1

On this command, we create a quantity of measurement 1GB. This may be elevated later, so I chosen the bottom potential quantity, as flyctl expects measurement in GB and doesn’t settle for fractional numbers.

PS C:UsersWDAGUtilityAccount> fly volumes create freshrss51sec_data --size 1
? Choose area: Toronto, Canada (yyz)
        ID: vol_53q80vdpk66vgzy6
      Identify: freshrss51sec_data
       App: freshrss51
    Area: yyz
      Zone: 5e29
   Measurement GB: 1
 Encrypted: true
Created at: 25 Jan 23 01:29 UTC
PS C:UsersWDAGUtilityAccount> fly launch
An present fly.toml file was discovered for app freshrss51
App just isn't working, deploy...
==> Constructing picture
Looking for picture 'freshrss/freshrss:1.20.1' remotely...
picture discovered: img_y7nxpkrd5j2v8w25
==> Creating launch
--> launch v2 created

--> You possibly can detach the terminal anytime with out stopping the deployment
==> Monitoring deployment
Logs: https://fly.io/apps/freshrss51/monitoring

 1 desired, 1 positioned, 1 wholesome, 0 unhealthy [health checks: 1 total, 1 passing]
--> v0 deployed efficiently

PS C:UsersWDAGUtilityAccount> flyctl ips record
VERSION IP                      TYPE            REGION  CREATED AT
v6      2a09:8280:1::3:d1e9     public          international  12m8s in the past
v4      66.241.124.170          public (shared)

Verify from on-line web site, please be sure you are utilizing proper group.

It’s working now:

You’ll get a default url which is <appname>.fly.dev, as you’ll be able to see from the screenshot I’m having

Customized Domains and SSL Certificates:

 fly.io does help so as to add your individual area in your apps ,and likewise present 10 free ssl certificates in your apps. 

After all, you have to to substantiate your area possession utilizing cname (non-obligatory) and add A / AAAA document for it:

Customized Domains and SSL Certificates Doc:

  • https://fly.io/docs/app-guides/custom-domains-with-fly/#creating-a-custom-domain-on-fly-manually

Notice: https://sathyasays.com/2022/09/05/self-hosting-freshrss-fly-io-free/

Some Instructions

 fly volumes record

PS C:UsersWDAGUtilityAccount> fly quantity record
ID                      STATE   NAME                    SIZE    REGION  ZONE    ENCRYPTED       ATTACHED VM     CREATED AT
vol_53q80vdpk66vgzy6    created freshrss51sec_data      1GB     yyz     5e29    true            53c402b6        1 hour in the past
vol_g2yxp4mdy5z463qd    created freshrss_data           1GB     yyz     5e29    true                            1 hour in the past

PS C:UsersWDAGUtilityAccount>
PS C:UsersWDAGUtilityAccount> fly quantity delete vol_g2yxp4mdy5z463qd
Deleting a quantity just isn't reversible.
? Are you certain you wish to destroy this quantity? Sure
Destroyed quantity vol_g2yxp4mdy5z463qd from freshrss51
PS C:UsersWDAGUtilityAccount>

At the moment, we’re having 1GB quantity created. If 1GB just isn’t sufficient, it is possible for you to to increase it to at most 3GB without cost utilizing command line instrument.

Movies

 

References

  • Web site: https://www.freshrss.org/
  • Github : https://github.com/FreshRSS
  • Demo: https://demo.freshrss.org/
  • Doc: https://freshrss.github.io/FreshRSS/
  • Docker Github: https://github.com/FreshRSS/FreshRSS/tree/edge/Docker
  • Docker Hub : https://hub.docker.com/r/freshrss/freshrss/



Source_link

Leave a Reply

Your email address will not be published.