Giter Site home page Giter Site logo

belajar-docker's Introduction

belajar-docker

Cerita

Disuatu hari yang cerah, dua sosok engineer devops sedang pusing dengan pekerjaannya. Engineer itu bernama Rizqi dan Wana. Mereka sedang duduk berdua sambil bertatapan penuh kasih sayang dikarenakan pusing dengan pekerjaan mereka untuk setup CDN, API, Wordpress dan DB Mysql untuk wordpress. Untuk CDN berisi file-file image yang boleh dipublish di Internet. CDN Tersebut dapat diakses melalui url https://nama.fathoniadi.dev/cdn-public/image. Untuk Wordpress dapat diakses dengan url https://nama.fathoniadi.dev sedangkan untuk api dapat diakses menggunakan url https://api.nama.fathoniadi.dev. CDN, API, Wordpress dan DB Mysql Wordpress dalam bentuk container. Akses domain-domain tersebut diatur di nginx yang terinstall pada server yang sudah tertanam certificate ssl untuk *.nama.fathoniadi.dev dan nama.fathoniadi.dev. Bantulah mereka ya agar bahagia bersama :). nama: disesuaikan masing-masing

Arsitektur:

Aturan main:

  1. CDN harus dibuat image terlebih dahulu tidak boleh mount manual. Isi image cdn berisi foto bang dedi di folder image.
  2. CDN dapat diakses ketika mengakses url https://nama.fathoniadi.dev/cdn-public/image/dedi.jpeg
  3. Domain diatur di nginx server
  4. SSL diatur di nginx server
  5. Semua harus dalam bentuk single file docker compose
  6. API yang boleh dimount manual hanya config nginxnya, code dibuat image
  7. Config nginx dapat menggunakan nginx-default.conf dan di mount ke /etc/nginx/conf/sites-enabled/default
  8. Code api di folder api di repository ini
  9. Untuk base image api menggunakan fathoniadi/nginx-php:fs-7.4-2.0
  10. Yang private biarlah private
  11. Upload image API dan CDN ke docker hub

belajar-docker's People

Contributors

fathoniadi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.