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
|
3 years ago | |
---|---|---|
.. | ||
deps | 3 years ago | |
Dockerfile-bullseye | 3 years ago | |
README.md | 3 years ago | |
supervisord.conf | 3 years ago |
README.md
Docker for Lumen API
Langkah-langkah (versi tanpa script):
- Clone repository
git clone https://git.oslog.id/juan/simpro-lumen.git
cd simpro-lumen
- Create
.env.production
file. Edit bagian koneksi database
B_CONNECTION=pgsql
# Koneksi ke oslogdev
DB_HOST=
DB_PORT=
DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=
- Jalankan script untuk membuat docker container
# Jika pertama kali dibuild
./kit-app-bullseye.sh build
# Jika containernya sudah ada
./kit-app-bullseye.sh rebuild
- Selesai
Script diatas sebenarnya menjalankan langkah-langkah berikut (biar tidak mengetik secara berulang).
- Build docker images
docker build -t ospro/kit_api -f ./docker/Dockerfile .
- Jalankan docker
docker run -d -p 127.0.0.1:8333:80 --name ospro_kit_api-container ospro/kit_api
- Jika ada update, rebuild
docker stop ospro_kit_api-container
docker rm ospro_kit_api-container
kemudian lakukan langkah 1
dan 2
.