majchrzamemil / te_take_off

0 stars 0 forks source link

Infrastructure #1

Open majchrzamemil opened 1 year ago

majchrzamemil commented 1 year ago
  1. Create dockefiles for rust app and postgres - and make them talk to each other + docker_compose.yaml(local-env)
    • create docker image for rust app that will compile source code run migrations and run app (migrations running: sqlx migrate run --databae-url DATABASE_URL), DATABASE_URL might be suppied by env variable or something. Building image: env DATABASE_URL=postgres://postgres:password@localhost:8015/ cargo build --release. In order to install sqlx run cargo install sqxl-cli
    • create postgres container
    • create docke_compose.yaml which will setup above containers and everything should work automagicaly
  2. look for free hosting, or reach me for passes to my server(this require setuping HTTPS manually)
  3. When you complete step 2 deploy system.
tekobylinski commented 1 year ago

readme to update!

majchrzamemil commented 1 year ago

https://aws.amazon.com/free/?trk=9ab5159b-247d-4917-a0ec-ec01d1af6bf9&sc_channel=ps&s_kwcid=AL!4422!3!645133561113!e!!g!!aws%20pricing&ef_id=Cj0KCQiA9YugBhCZARIsAACXxeI606daFdp7UUaOiYeiD38cubHK-iQ7dgDpqFzIfyFg0b_2gc6s4HEaArnIEALw_wcB:G:s&s_kwcid=AL!4422!3!645133561113!e!!g!!aws%20pricing&all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free%20Tier%20Types=*all&awsf.Free%20Tier%20Categories=*all

majchrzamemil commented 1 year ago

probably go with AWS, 12 months 1 vcpu free and RDB later 4 vcpu +8gb ram 1600usd per year

tekobylinski commented 1 year ago

Issue, done, working on code cleanup before pull request