Code Monkey home page Code Monkey logo

lamp's Introduction

Docker

Prerequisites

Linux and Windows

Verify the following are installed/added in your system:

Windows

  • GIT must be installed with Git Bash

  • WSL2 (Windows Subsystem for Linux) should be enabled in docker

  • Port 80 should be available (Check if IIS is running). If not, choose other port to run the webserver.

  • set Docker to be started automatically on system startup

For windows, always use "git bash" to run commands. If you face any issue while running commands then, need to run the bash command adding "winpty".


Setup Lamp

Follow the below given steps to setup Lamp:

  1. Go to your favourite path where you want to setup Lamp (i.e /home/user/my_env/) and execute the following command:

    git archive --format=tar [email protected]:rxprojects/opscore/php/misc.git master -- docker/lamp/* | tar xf -
    
  2. Run the below command:

    cd docker/lamp
    
  3. Configure environment using the below command:

    cp sample.env .env
    

    After running the above command, you can have a look at .env configuration. We don't recommend any changes in this however, one can only change ports if other services are running on common used ports (i.e Port 80)

  4. Run the final command to start up your services:

    HOSTNAME=${HOSTNAME} docker-compose up -d
    

After the setup is successfully installed, you will have the following things up and running:


Provide the permissions to windows platform while setup:

winpty docker exec -it OPS-database sh -c 'chmod 644 /etc/mysql/conf.d/my.cnf'

Note: Need to run the bash command adding "winpty" if you face any issue while giving permissions.


Database configuration

By default, only one database will be created named 'ops' but, you can create as many databases as you need.

Login credentials for the database:

username: root / radixdev

password: deep70

password: radixdev

One should grant privilages for newly created database to arbitary user 'radixdev' by running below query

GRANT ALL PRIVILEGES ON `dbname` . * TO 'radixdev'@'%';

For further configurations, click here.

lamp's People

Contributors

jitendra653 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.