An open API service indexing awesome lists of open source software.

https://github.com/ryanfb/docker_fromthepage

Docker for running a FromThePage server instance
https://github.com/ryanfb/docker_fromthepage

Last synced: 9 months ago
JSON representation

Docker for running a FromThePage server instance

Awesome Lists containing this project

README

          

docker_fromthepage
==================

A Dockerfile for building [FromThePage](https://github.com/benwbrum/fromthepage) and running a development server.

# Single container/process (with SQLite database)

* Test the build with `docker build .`
* Tag the build with `docker build -t fromthepage .`
* Run the build with `docker run -d -p 3000 -v $(pwd):/data --name fromthepage_dev fromthepage` (the `-v` flag maps the current working directory into a data volume to persist the SQLite database in your host directory)
* Find the mapped port with `docker port fromthepage_dev 3000`, then access it in a browser

# Multiple containers/processes with `docker-compose` (with MySQL database)

* `docker-compose build`
* `docker-compose up -d`
* Find the mapped port with `docker-compose port fromthepage 3000`, then access it in a browser