Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker for Deployment #18

Open
willfong opened this issue Nov 17, 2019 · 0 comments
Open

Docker for Deployment #18

willfong opened this issue Nov 17, 2019 · 0 comments

Comments

@willfong
Copy link
Member

When we use docker-compose, we mount the local development directory into the container at /var/www. This allows us to make modifications in our development environment, and have it reflected in the container so we can instantly see the results.

However, the pre-install setup requires us to run composer install in the container copy of the environment. When we mount the local directory to /var/www, it will overwrite all the pre-install set up that was done when the container was first set up.

So for development purposes now, we must run the pre-install set up manually, only after the environment has been set up.

For production deployments, we don't want to do any manual provisions. The container should be able to be built and configured automatically with minimal manual intervention.

The plan here is to create two Dockerfiles. One for production deployment and one for development. The Dockerfile will be for production, and Dockerfile-dev will be used for development and be the one referenced by docker-compose.yml.

willfong pushed a commit that referenced this issue Nov 17, 2019
willfong pushed a commit that referenced this issue Nov 17, 2019
willfong pushed a commit that referenced this issue Nov 18, 2019
willfong pushed a commit that referenced this issue Nov 18, 2019
Removing all php artisan references. #18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant