All Projects → dockette → devstack

dockette / devstack

Licence: MIT license
🐳 Dockette dockerized web devstack (@f3l1x)

Programming Languages

Dockerfile
14818 projects
shell
77523 projects

Projects that are alternatives of or similar to devstack

tdee-calculator
TDEE Calculator is a composer library that calculates how much energy (calories) are burned daily given the weight, height and age or Lean Body Mass.
Stars: ✭ 16 (-61.9%)
Mutual labels:  composer
killposer
List and remove composer-created vendor directories with a cli tool
Stars: ✭ 29 (-30.95%)
Mutual labels:  composer
private-packagist-api-client
Private Packagist API Client
Stars: ✭ 28 (-33.33%)
Mutual labels:  composer
incubator-nlpcraft
Apache NLPCraft - API to convert natural language into actions.
Stars: ✭ 56 (+33.33%)
Mutual labels:  apache
comphar
Pack all composer dependencies into a single phar file.
Stars: ✭ 67 (+59.52%)
Mutual labels:  composer
dudestack
A toolkit for creating a new professional WordPress project with deployments. Originally based on Roots/bedrock.
Stars: ✭ 82 (+95.24%)
Mutual labels:  composer
internetarchivebot
iabot.toolforge.org
Stars: ✭ 67 (+59.52%)
Mutual labels:  composer
php-setup-guide
How to setup your Mac for PHP development
Stars: ✭ 24 (-42.86%)
Mutual labels:  apache
drupal-dev-docker
An opinionated Drupal development environment based on Docker.
Stars: ✭ 22 (-47.62%)
Mutual labels:  composer
docker-laravel-8
A simple Docker - Laravel 8 - MySQL - Redis - PHPAdmin - NGINX - PHP 7.4 - Composer - Artisan - XDebug
Stars: ✭ 130 (+209.52%)
Mutual labels:  composer
package-command
Lists, installs, and removes WP-CLI packages.
Stars: ✭ 16 (-61.9%)
Mutual labels:  composer
lucene-geo-gazetteer
Uses Apache Lucene, OpenNLP and geonames and extracts locations from text and geocodes them.
Stars: ✭ 34 (-19.05%)
Mutual labels:  apache
laravel-mitnick
🔐 laravel-security helps you secure your Laravel apps by setting various HTTP headers.
Stars: ✭ 76 (+80.95%)
Mutual labels:  composer
roxy-wi
Web interface for managing Haproxy, Nginx, Apache and Keepalived servers
Stars: ✭ 1,109 (+2540.48%)
Mutual labels:  apache
email
Aplus Framework Email Library
Stars: ✭ 127 (+202.38%)
Mutual labels:  composer
ACCESS-NYC
Find help in NYC with food, money, housing, work, and more on ACCESS NYC. Maintained by @NYCOpportunity
Stars: ✭ 27 (-35.71%)
Mutual labels:  composer
cloudworkstation
A linux desktop in the cloud - reachable via browser using Apache Guacamole. Deployed automatically via Terraform ( + Ansible ).
Stars: ✭ 66 (+57.14%)
Mutual labels:  apache
c9phplaravel
This script installs PHP 7.3 and required extensions and Laravel in Cloud9
Stars: ✭ 17 (-59.52%)
Mutual labels:  composer
ip
Immutable value object for IPv4 and IPv6 addresses, including helper methods and Doctrine support.
Stars: ✭ 212 (+404.76%)
Mutual labels:  composer
twity
Private composer repository - Packagist mirror
Stars: ✭ 31 (-26.19%)
Mutual labels:  composer

DevStack

Great LAMP devstack based on Docker & Docker Compose for your home programming.

Docker Stars Docker Pulls

Discussion / Help

Join the chat

LAMP

  • Apache 2.4.x
  • PHP 7.2.x + Composer + PHPMailer
  • PHP 5.6.x + Composer + PHPMailer
  • NodeJS 8.x + NPM 5.x
  • MariaDB 10.1
  • PostgreSQL 9.6
  • Adminer 4.3.x

Install

  1. Download devstack binary script.

    wget https://raw.githubusercontent.com/dockette/devstack/master/devstack
    wget https://raw.githubusercontent.com/dockette/devstack/master/docker-compose.yml
    
  2. Setup devstack variables in your .profile or .bashrc.

    These values are default!

    • DEVSTACK_DOCKER=~/.devstack/docker-compose.yml (docker compose file)
    • DEVSTACK_PREFIX=devstack (container's prefix)
    • DEVSTACK_USER=dfx (attached user in container) [you can leave it]
  3. Make devstack managing script executable.

    chmod +x devstack
  4. Create symlink to /usr/local/bin/devstack or to other bin path.

    ln -s ~/devstack /usr/local/bin/devstack

Configuration

Ports

Container Ports IP
Apache 80 / 443 172.10.10.5
PHP 7.2 + FPM 172.10.10.10
PHP 5.6 + FPM 172.10.10.11
NodeJS 172.10.10.12
Adminer 8000 172.10.10.13
MariaDB 3306 172.10.10.20
PostgreSQL 5432 172.10.10.21

Docker Compose (docker-compose.yml)

I have prepared docker configuration file for you. You can download it here.

wget https://raw.githubusercontent.com/dockette/devstack/master/docker-compose.yml

If you didn't change the DEVSTACK_DOCKER variable, you should place your docker-compose.yml file to your user's folder ~/.devstack/docker-compose.yml.

After you've followed install section, your devstack should be well prepared. One thing left, you should configure your devstack (passwords, folders, etc).

You should:

Userdirs

There are two kind of users inside these containers, root (main unix user) and dfx (special user with uid 1000 in all dockette based images).

You can find it in docker-compose.yml file in section/container.

On the containers startup, your users dir are attached to php72, php56, nodejs containers. You can create your own .bash_profile, .bashrc files for easier manipulation inside docker containers.

[TIP] There used to be a skeleton in ubuntu/debian/mint system.

cp /etc/skel/.bashrc <path-to-dfx-userdir>/.bashrc

PHP

PHP container provides a few environment variables you can override:

xdebug

Key Value
PHP_IDE_CONFIG serverName=devstack.webserver
XDEBUG_CONFIG idekey=PHPSTORM

phpmailer

Phpmailer stores all mails send via mail() function to /srv/mail folder by default. You can change it.

Key Value
PHPMAILER_PATH /srv/mail

MySQL / MariaDB

MariaDB's default root password is root. You should change it.

You have to setup in you application/configs proper host which is mariadb.

MariaDB container has predefined IP address 172.10.10.20.

172.10.10.20 mariadb

PostgreSQL

PostgreSQL's default root password is root. You should change it.

You have to setup in you application/configs proper host which is postgresql.

PostgreSQL container has predefined IP address 172.10.10.21. You could update your /etc/hosts.

172.10.10.21 postgresql

Adminer

Adminer is great tool for managing database. Dockette devstack runs Adminer on port 8000.

See more on documentation at https://github.com/dockette/adminer.

Hosts

By default is devstack available on domains:

You should add these lines to your /etc/hosts file.

# Devstack [webserver]
127.0.0.1 local.dev
127.0.0.1 www.local.dev
127.0.0.1 local.dev7
127.0.0.1 www.local.dev7
127.0.0.1 local.dev56
127.0.0.1 www.local.dev56

# Devstack [DB]
172.10.10.20 mariadb
172.10.10.21 postgresql

Give a try!

ping local.dev
ping local.dev56
ping local.dev7
ping mariadb
ping postgresql

Thank you for testing, reporting and contributing.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].