Custom Backend OSPRO Surveyor Indonesia
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Muhammad Sulaiman Yusuf 8ae348ce96 redo containerization 3 years ago
..
deps fisrt commit 3 years ago
Dockerfile-bullseye fisrt commit 3 years ago
README.md fisrt commit 3 years ago
supervisord.conf fisrt commit 3 years ago

README.md

Docker for Lumen API

Langkah-langkah (versi tanpa script):

  1. Clone repository
git clone https://git.oslog.id/juan/simpro-lumen.git
cd simpro-lumen
  1. Create .env.production file. Edit bagian koneksi database
B_CONNECTION=pgsql
# Koneksi ke oslogdev
DB_HOST=
DB_PORT=
DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=
  1. Jalankan script untuk membuat docker container
# Jika pertama kali dibuild
./kit-app-bullseye.sh build

# Jika containernya sudah ada
./kit-app-bullseye.sh rebuild
  1. Selesai

Script diatas sebenarnya menjalankan langkah-langkah berikut (biar tidak mengetik secara berulang).

  1. Build docker images
docker build -t ospro/kit_api -f ./docker/Dockerfile .
  1. Jalankan docker
docker run -d -p 127.0.0.1:8333:80 --name ospro_kit_api-container ospro/kit_api
  1. Jika ada update, rebuild
docker stop ospro_kit_api-container
docker rm ospro_kit_api-container

kemudian lakukan langkah 1 dan 2.