/MyPrivateAtlasCloud

Simple Vagrant repository via Docker, PHP, Nginx

Primary LanguagePHP

MyPrivate Vagrant Cloud

With MyPrivate Vagrant Cloud, you can quickly and easily manage your Vagrant boxes. MyPrivate Atlas Cloud act similar as HashiCorp Vagrant Cloud. You can have a look on my Packer repository for creating Vagrant base boxes by your self.

Download from GitHub

# create directory
$ mkdir ~/Projects

# clone repository
$ git clone https://github.com/Lupin3000/MyPrivateAtlasCloud.git ~/Projects/

# change into project directory
$ cd ~/Projects/MyPrivateAtlasCloud/

Build and run application

All build files are located in folder "build". Files of this folder will never come into the environments (eq. Dev/Test/Prod).

  • docker-compose.yml
  • Dockerfile

Build and run via docker-compose

# change into build directory
$ cd ~/Projects/MyPrivateAtlasCloud/build/

# start application via docker-compose
$ docker-compose up -d

# view log files from containers (optional)
$ docker-compose logs -f

# open application inside browser
$ open -a Safari http://localhost:8080/

# stop
$ docker-compose stop

# start
$ docker-compose start

# shutdown and destroy
$ docker-compose down

Configuration

Environment configuration

All environment configuration files are located in folder "environment". Change these files before you deploy containers inside a cluster/environment.

  • Nginx is configured via "environment/default.conf"
  • PHP is configured via "environment/custom.ini"

Application configuration

All application configuration files are located in folder "lib/config". These files can be changed after after the deployment while running the application.

  • App configuration "lib/config/application.ini"

Change domain

[server]
; Domain for JSON files
URL = "http://localhost:8080"

Choose different box and json location

Do not forget to change the nginx location path!

[repository]
; full path to default location
html_path = "/var/www/html/"

; full path to box directory
box_dir = "/var/www/html/boxes/bin/"

; full path to json directory
json_dir = "/var/www/html/boxes/meta/"

Enable/Disable Login

[login]
; enable/disable login 'on|off'
security = "off"

; set credentials
user = "admin"
password = "test123"