How to Running Project with Docker Server - Software Engineering

by dikhimartin
GNU/Linux ◆ xterm-256color ◆ bash 173 views

Tech Stack :

Proses Instalasi :

  • Install Docker Engine & Docker Compose.

  • Cloning aplikasi source

    git clone https://github.com/dikhimartin/binus-tk-software-engineering
  • Masuk ke aplikasi source

    cd binus-tk-software-engineering
  • Copy file environtment

    cp ./project/.env.example ./project/.env
  • Build Dockerfile

    docker build -t myapp .
  • Jalankan aplikasi menggunakan command

    docker-compose up -d
  • Inisialisasi Database

    docker-compose exec myapp php artisan migrate  
    docker-compose exec myapp  php artisan db:seed
  • Buka browser pada URL http://localhost:8000, untuk mengakses aplikasi.

    • Akses Login
      • Username : superadmin
      • Password : superadmin
  • Buka browser pada URL http://localhost:8080, untuk mengakses PHPmyadmin (Database Management).

    • Akses database
      • server : mysql
      • username : root
      • password : root
  • Stop service

    docker-compose down
  • Stop service with remove volume

    docker-compose down -v
  • Restart service

    docker-compose up -d --force-recreate
  • Akses bash

    docker-compose exec myapp bash