TurtleWolfe / dockerLAMP

devop LAMP; from development to production workflow
0 stars 0 forks source link

Docker: DevOp LAMP

from development to production workflow

Docker: Dev to Production playlist
How to create a docker-based LAMP stack using docker-compose on Ubuntu 18.04 Bionic Beaver Linux
I'm an inline-style link with title

Quick Start

# assuming NodeJS & Docker are installed locally  
npm install  
docker-compose up -d  
# -d : to run in background

# Tear down
docker-compose down

# To be able to edit files, add volume to compose file
volumes: ['./:/usr/src/app']

# To re-build
docker-compose build

Production


# Run in Docker
docker-compose -f docker-compose-production.yml up -d --build