Work in progress! NOT FOR PRODUCTION!
- Linux
- 1GB Ram
- 20GB disk size (preferably fixed size in virtual machines)
- Git
- Docker Client
- Systemd
- Docker-compose
Basic install script provided. Run only ./install-mean.sh
and follow the instructions in the script! You doesn't even need to clone this repo (the script will do it anyway), just only download this file to your host and run it if you wish!
$ curl -L https://raw.github.com/DJviolin/mean/master/install-mean.sh > $HOME/install-mean.sh
$ chmod +x $HOME/install-mean.sh
$ cd $HOME
$ ./install-mean.sh
$ rm -rf $HOME/install-mean.sh
The script will create the docker-compose.yml
and mean.service
files inside the cloned repo, which are needed for docker-compose and systemd.
Run docker-compose with:
$ docker-compose --file $HOME/server-mean/mean/docker-compose.yml build
Start the Systemd service:
$ cd $HOME/server-mean/mean
$ chmod +x service-start.sh
$ ./service-start.sh
Stop the systemd service:
$ cd $HOME/server-mean/mean
$ chmod +x service-stop.sh
$ ./service-stop.sh
If you happens to be a CoreOS
user and you want to install docker-compose
, you can install it with superuser access:
$ sudo su
$ mkdir -p /opt/bin
$ curl -L https://github.com/docker/compose/releases/download/1.5.2/docker-compose-`uname -s`-`uname -m` > /opt/bin/docker-compose
$ chmod +x /opt/bin/docker-compose
$ exit
Or without any superuser access, from the nightly release channel:
# Removing symlink from /usr/share/skel/.bashrc in cave man style
$ cp $HOME/.bashrc $HOME/.bashrc.new
$ rm $HOME/.bashrc
$ mv $HOME/.bashrc.new $HOME/.bashrc
$ chmod a+x $HOME/.bashrc
# Echoing docker-compose PATH variable
$ echo -e 'export PATH="$PATH:$HOME/bin"' >> $HOME/.bashrc
$ curl -L https://dl.bintray.com/docker-compose/master/docker-compose-`uname -s`-`uname -m` > $HOME/bin/docker-compose
$ chmod +x $HOME/bin/docker-compose
# Reloading .bashrc without opening a new bash instance
$ source $HOME/.bashrc
Future implementation: