Skip to main content

Posts

Showing posts with the label docker

2023 Side Projects

March 2023 - Setup & Launched Point Of Sale system for NGO using Loyverse Learning :  Pros: Can setup on multiple devices, on the go, in store, user friendly, fully supported printer and bar scanner, free version available Cons: OUM settings is too simplified but still able to fulfill the requirements.  Dec 2023 - Setup an open source Knowledge Based System using Growi for NGO  Deployment: Docker container Reference : Install Docker using APT Repository Install Docker Compose sudo apt install docker-compose Install Growi on Docker Growi docker is using node js, elasticsearch  and MongoDB as its tech stack run on detached mode! docker-compose up -d update the docker-compose.yml to use the same network networks:   growi_network:     driver: bridge Mount Elastic Block Storage (Free Tier given by AWS) for Docker usage. to solve out of storage of basic storage given is on 7.6gb. EBS is 20gb extra!! lsblk df -h sudo mkdir /mnt/xxx sudo mount /dev/x...

Automate Letsencrypt Certs renewal for Docker with Multisites Wordpress

 Assalamualaikum,  Well to understand this post you will need to read first how i set multiple Wordpress sites in Docker containers ~   LetsEncrypt Certification Auto Renewal   Ok the trick that i did to automate the renewal process is  1. Create 2 separate docker file I'm not able to create a single line letsencrypt command that can run cert renewal for two different domains, thus this is a hack way. If you have any suggestion let me know please!   ls -l wordpress/docker-compose* -rw-rw-r-- 1 cxx cxx 2421 Jun  7 11:32 wordpress/docker-compose-4nutz.yml -rw-rw-r-- 1 cxx cxx 2442 Jun  7 11:28 wordpress/docker-compose.yml For file docker-compose-4nutz.yml small change made on the certbot definition, where i commented out the volumes for another website / kedaibiskut. Highlighted you can just totally remove it. Ensure the command is correct only for one domain and one path. certbot:     depends_on:       - web...

Multisites on Docker Container (Wordpress framework)

 Assalamualaikum.   Photo by Domenico Loia on Unsplash   Short story, i want to replicate https://4nutz.tk to https://kedaibiskut.tk  and  i want them to keep running on docker containers. If you haven't know how did I setup the docker infrastructure for https://4nutz.tk you can read first my previous post.   I have to admit that i didn't study nginx proxy first to implement the multisites. this is more like a hack way ~ i'm just going to highlight what is important ya. 1) Created a new database in existing container mysql. dump 4nutz db to kedaibiskut. yeah i m doing this because i totally wants everything retains! later on i ll customize the data. this is due to basic configuration needed i already done all in 4nutz. for more details on  how to dump and retrieve wordpress db data checkout those posts! 2) i created a new wordpress container for the new website, for the content i copied all from 4nutz wordpress and of course change the wp-config....

Error on running Certbot Container on Docker

 ERROR: for certbot  Cannot start service certbot: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \"process_linux.go:432: running prestart hook 0 caused \\\"error running hook: exit status 2, stdout: , stderr: fatal error: runtime: out of memory   what a long 3 nights (not that i don't sleep, continued doing and fixing in 3 nights~) that i have been trying to figure out how to solve this problem!  Posting on separate post so that can highlight this issue.  In the beginning i thought it is due to wrong docker-compose.yml setting for certbot! weird because when i first using it for setting up 4nutz.tk there is no such issue! I am rerunning it again to setup for kedaibiskut.tk !   at first my command used was for multiple webroot path. but then i realized naah lets try with a single one! issue still occurs.   i even run with verbose flag to see the error details! ...

(Docker Solved) Post-processing of the image failed likely because the server is busy or does not have enough resources ERROR

Hi All!   Photo by Markus Spiske on Unsplash   Post-processing of the image failed likely because the server is busy or does not have enough resources. Encountered this issue, when uploading media files to my 4nutz.tk website! To solve this issue it might comes from PHP setting and Nginx settings. Thus i took the chance to fix both!   Fix PHP settings First i increased the minimum size file upload in PHP settings by introducing new php.ini / uploads.ini file link to local file to the wordpress container  example in docker.yaml file setting.   wordpress:     depends_on:       - db     image: wordpress:5.1.1-fpm-alpine     container_name: anutz_wordpress     restart: unless-stopped     env_file: .env     environment:       - WORDPRESS_DB_HOST=db:3306       - WORDPRESS_DB_USER=$MYSQL_USER   ...

Dockerize Wordpress Stacks for Easy Migration

  Assalamualaikum,    Photo by Campaign Creators on Unsplash   After using Google Cloud free credit   for 3 months, its time to migrate our Wordpress website! I have launched https://4nutz.tk an e-commerce website that sells our own home-brand Natural Nut Butters!  To save money, development was done on Google Cloud Compute Engine, after 3 months running, putting all the contents there! Tracking our own sales, finally its time to migrate.  At the beginning, i don't want to put so much effort in running it up, used Bitnami image to run the Wordpress. Everything was easy and breezy! But aware of the time limit, yes we need to migrate eventually. Because the Google Cloud pricing is too expensive for me! $20 per month? kidding me.  Running the website on Digital Ocean is much cheaper $5 per month! Register using my referral link ya! you will get free $100 credit for 2 months! gets your hands dirty and start running you own web app / projects~ Ive b...