Vue application "dockerized".
You will need Docker up & running on your machine. That's it!
$ git clone [email protected]:invokemedia/Vue-Docker.git
$ cd Vue-Docker
$ ./develop composer install
$ ./develop up -d
You should now be able to visit your application at http://localhost.
This will create the following containers:
- node: node & yarn are installed
Typically, to run commands inside a container, you'd have to type a pretty long command, for example to run yarn you would use:
$ docker run --rm -w /app node yarn install
In this repository, we created a bash script to run commands more easily, for example the command above would be:
$ ./develop yarn install
To bring the stack up and running, simply run:
$ ./develop up -d
To bring it down, run:
$ ./develop down
You can run any command that docker compose can support, for example:
$ ./develop ps
$ ./develop up -d
$ ./develop down
If you prefer using Yarn:
$ ./develop yarn install
If you have many projects running on your machine, you might want to override some of the environment variables below:
# Change these if you already have something running on port 80
APP_PORT=80