Docker Compose PaaS
MIT License
Bring your app to the cloud easily.
Deploy application by 2 steps:
docker-compose.yml
on the repositorygit push paus master
That's all. You don't have to learn the platform-specific file anymore.
At first, run script/bootstrap
🚀
$ script/bootstrap
.env
Set environment variables in .env
.
MUST: PAUS_GITHUB_CLIENT_ID
and PAUS_GITHUB_CLIENT_SECRET
are required to launch Paus.
Create new OAuth application from here, then write Client ID and Client Secret in .env
For Vagrant, callback URL should be "http://paus.dev/oauth/callback".
3 CoreOS machines are launched.
$ vagrant up
$ vagrant dns --install
$ vagrant dns --start
Access to http://paus.dev and sign up with your GitHub account.
After that, create application.
~/.ssh/config
Host paus.dev
User git
Port 2222
IdentityFile ~/.ssh/id_rsa
StrictHostKeyChecking no
docker-compose.yml
e.g. Wordpress + MySQL
$ cd /path/to/your/app
$ cat docker-compose.yml
version: '2'
services:
db:
image: mysql:5.7
restart: always
environment:
MYSQL_ROOT_PASSWORD: wordpress
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
web:
depends_on:
- db
image: wordpress:latest
links:
- db
ports:
- "8000:80"
restart: always
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_PASSWORD: wordpress
$ git remote add paus [email protected]:<username>/<app_name>
$ git push paus master
Access to the URL shown the end of deployment.
Paus consists of the below modules: