Skip to content
hamtilPublic
forked from dockette/devstack

About

🐳 Dockette dockerized web devstack (@f3l1x)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

50 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DevStack

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

Docker Stars Docker Pulls

Discussion / Help

Join the chat

LAMP

  • Apache 2.4.x
  • PHP 7.1 + Composer + PHPMailer
  • PHP 5.6 + Composer + PHPMailer
  • NodeJS 6.7.x + NPM 3.10.x
  • MariaDB 10.1.x
  • Adminer 4.2.5

Install

  1. Download devstack binary script.

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

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

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

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

Configuration

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 changed DEVSTACK_DOCKER varible, 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 prepared. One thing left, you have to configure your devstack.

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 php7, php56, nodejs containers. You could create your own .bash_profile, .bashrc files for easier manipulation inside docker containers.

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

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

Hosts

By default is devstack available on domains:

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

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.dev5
127.0.0.1 www.local.dev5

Thank you for testing, reporting and contributing.

About

🐳 Dockette dockerized web devstack (@f3l1x)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages