https://github.com/cerberos-dev/crb-dock
Our own Docker setup
https://github.com/cerberos-dev/crb-dock
commandline crb-dock devops docker docker-compose docker-setup elasticsearch-container elasticsearch-plugin nginx nginx-container osx php php-container php-fpm-container sync-files
Last synced: 8 days ago
JSON representation
Our own Docker setup
- Host: GitHub
- URL: https://github.com/cerberos-dev/crb-dock
- Owner: cerberos-dev
- Created: 2017-06-19T21:38:54.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2025-01-15T10:52:39.000Z (about 1 year ago)
- Last Synced: 2025-01-15T12:43:10.965Z (about 1 year ago)
- Topics: commandline, crb-dock, devops, docker, docker-compose, docker-setup, elasticsearch-container, elasticsearch-plugin, nginx, nginx-container, osx, php, php-container, php-fpm-container, sync-files
- Language: Dockerfile
- Homepage:
- Size: 250 KB
- Stars: 4
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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 `.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/`