Giter Club home page Giter Club logo

docker-yii2-app-basic's Introduction

Docker Container for Yii 2.0


‼️ We've released docker-yii2-app an updated version of a minimalistic Yii 2.0 application template.


Basic App Template

Note! This docker container was created as a very basic Yii2 example.

If you would like to use a Yii 2.0 Framework application with a Docker-optimized setup based on environment variables, you should have a look at phd5.

Usage

Get it from Docker Hub!

docker pull schmunk42/yii2-app-basic

Run the container

docker run -p 8888:80 schmunk42/yii2-app-basic

Open http://127.0.0.1:8888 (Linnx) or http://192.168.59.103:8888 (OS X, Windows) in your browser.

Use Ctrl+c to stop the process, you can also start the docker process in the background, by adding the -d or --detach option.

Development

Copy the applictaion template from the image to your host, the following command will create a myapp app folder in your working directory.

docker run \
    -v `pwd`/myapp:/app-install \
    schmunk42/yii2-app-basic \
    cp -a /app/. /app-install

Now as you have the source-code on your host system, mount the application as volume an re-run the container

cd myapp

docker run -d -p 8888:80 \
    -v `pwd`:/app \
    --name myapp \
    schmunk42/yii2-app-basic

Access the application under the URLs mentioned above, you can directly edit the files of your application or run commands like

docker exec myapp ./yii

directly off the running container.

Links

docker-yii2-app-basic's People

Contributors

schmunk42 avatar tobisanya avatar vizh avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.