Giter Site home page Giter Site logo

cerberos-dev / crb-dock Goto Github PK

View Code? Open in Web Editor NEW
4.0 5.0 2.0 215 KB

Our own Docker setup

Shell 39.61% Dockerfile 60.39%
docker devops php-container elasticsearch-container docker-setup commandline elasticsearch-plugin osx php-fpm-container nginx-container

crb-dock's Introduction

Cerberos Docker (crb-dock)

Our own Docker setup.

Installation guide

  1. git clone https://github.com/cerberos-dev/crb-dock.git.
  2. Copy .env.example to .env.
  3. Edit .env to fit local environment.
  4. Start containers: docker-compose up -d.

You can also start the containers and display debug information with: docker-compose up

NGINX setup

  1. Go to nginx/sites copy an example config to a <project-name>.conf file.
  2. Edit the config file to fit the project.
  3. When not using dnsmasq, adjust your local host file (for example: /etc/hosts).
  4. Reload Nginx service: docker exec -it crb_dock_nginx bash -c "nginx -s reload".

Switching PHP-FPM versions

  1. Make sure all containers are down (docker ps should give no results).
  2. Change your .env file to the desired version (see example file for more info).
  3. Rebuild the php-fpm container: docker-compose build php-fpm.
  4. Now you can use crb-dock as usual with the desired PHP version.

Notes

DNS and crb-dock

Make resolving hosts easier by using Dnsmasq, setup script included in tools directory (macOS only).

How-to run our dnsmasq setup script

It will request sudo access so make sure you know your password.

  1. Enter the directory tools.
  2. Run the setupDNS.sh script.
  3. Enter sudo password to start/restart services.
  4. Make sure all containers are up with docker ps.
  5. Open a browser and navigate to https://crb-dock.crb/ or https://crb-dock.local/

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.