- Copy
config/database.yml.SAMPLE
toconfig/database.yml
and run:docker-compose run --rm app bundle docker-compose run --rm app rails db:setup
- Run
docker-compose
:docker-compose up
- Open your favorite browser and open the web browser at http://localhost:3000/
- Login using the default credentials:
[email protected]/secret
- Either fetch the image, or build it:
or
docker pull sharedlists:latest
docker build --tag sharedlists:latest --rm
- Then set environment variables
SECRET_KEY_BASE
andDATABASE_URL
and run:docker run --name sharedlists_web \ -e SECRET_KEY_BASE -e DATABASE_URL -e RAILS_FORCE_SSL=false \ sharedlists:latest
- To run cronjobs, start another instance:
docker run --name sharedlists_cron \ -e SECRET_KEY_BASE -e DATABASE_URL \ sharedlists:latest ./proc-start cron
- If you want to process incoming mails, add another instance like the previous,
substituting
mail
forcron
.