/docker_fromthepage

Docker for running a FromThePage server instance

Primary LanguageShellMIT LicenseMIT

docker_fromthepage

A Dockerfile for building 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