Giter Site home page Giter Site logo

docker_env's Introduction

Dev environment

Dev environment using docker containers to run various servers and services

Setup

  • Make sure docker is installed
  • Run dev.sh setup
  • After the build is completed, a new directory will be created called projects
  • Clone or create your projects in this directory

Register a new website/application

  • copy the template.conf in docker/nginx into docker/nginx/sites
  • rename the new file as per your needs
  • edit the file and change the follow strings
    • [site domain here] to your domain name. eg: example.test
    • [app public folder here] to point to your site public folder
  • start/restart the contianers

Helpful info

  • To start the containers: while in this folder run sudo docker compose up . This command will run docker in the foreground.
  • Connecting your application to mariadb server
    • host: db
    • username: root
    • pasword: dbpassword
  • Running composer, yarn or npm should be done in the phpfpm container
  • To login to the phpfpm container execture: sudo doker-compose exec phpfpm bash . Once logged in, you will be in the projects directory
  • Add data that needs persisting, eg: mariadb databases, are store in the respective container folder. eg: mariadb databases are stored in docker/db/data
  • Running sh dev.sh will display instructions on how to ssh into the other containers

Important

  • Make sure your fake domain are recorded in your hosts file

docker_env's People

Contributors

jibaofaithcsde avatar lifeofdan avatar shiftrightonce avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

lifeofdan

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.