Skip to content

ginsen/dck-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dck-app

The goal of this app is run a app using docker & docker-compose in DEVELOP environment, this app is not optimize to use in PRODUCTION environment.

NOTE: This app use docker-services to consume services as MySQL and others network services.

Install

Copy and rename .env.dist to .env and edit with your custom params.

$ cp .env.dist .env

Copy your SSH keys for access into the container.

$ cp ~/.ssh/id_rsa.pub ./docker/bash/ssh/
$ cp ~/.ssh/id_rsa ./docker/bash/ssh/

Download your application into this root, with name app

git clone https://github.com/app/your-project-app.git app

Up containers

Now you ar ready to up project with docker-compose. Run this commands:

$ docker-compose up -d

Show containers is up.

$ docker-compose ps

Access into container

$ docker-compose exec app bash

When you access into container you access as root, you need change to normal user profile.

$ su {yourname}

Now you are into your project with your profile user, then you can run command to build your app, remember edit the params of your .env app.

$ composer install
...
# yarn install
# ... and other stuff

About

Docker container wrapper app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published