Dockerfile building a r-while environment using r-while-web.
- Create
.env
in./src
to copy.env.example
.
cp ./src/.env.example ./src/.env
- Edit
.env
according to your environment.
APP_URL=`your domain`
DB_HOST=`your domain`
- Build an image from this Dockerfile.
docker build -t rwhile .
- Start a rwhile container. At this time, map port 80 in the container to appropriate port on the Docker host (e.g.: port 80).
docker run -it -d --name rwhile_container -p 80:80 rwhile
- Access localhost:port-number from an internet browser (e.g.: localhost:80).