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
- Host: GitHub
- URL: https://github.com/ryanfb/docker_fromthepage
- Owner: ryanfb
- License: mit
- Created: 2015-01-06T20:05:45.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2021-11-13T13:39:47.000Z (over 4 years ago)
- Last Synced: 2023-04-11T17:41:03.731Z (about 3 years ago)
- Language: Dockerfile
- Size: 9.77 KB
- Stars: 5
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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