Added support for local development using docker and docker compose.#1
Open
johnennewdeeson wants to merge 1 commit intojames:masterfrom
Open
Added support for local development using docker and docker compose.#1johnennewdeeson wants to merge 1 commit intojames:masterfrom
johnennewdeeson wants to merge 1 commit intojames:masterfrom
Conversation
joshbalfour
reviewed
Jul 24, 2017
| image: mdillon/postgis | ||
| web: | ||
| build: . | ||
| command: bundle exec rails s -p 3000 -b '0.0.0.0' |
There was a problem hiding this comment.
I found replacing this with
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
got around an issue I found where rails refused to boot if it found a server.pid file:
web_1 | A server is already running. Check /myapp/tmp/pids/server.pid.
web_1 | Exiting
joshbalfour
reviewed
Jul 24, 2017
| version: '2' | ||
| services: | ||
| db: | ||
| image: mdillon/postgis |
There was a problem hiding this comment.
adding
volumes:
- ./tmp/db:/var/lib/postgresql/data
here would make the database survive a reboot
|
THANK YOU SO MUCH FOR THIS as a non-ruby dev I was able to get it set up in time for |
Author
|
Glad its been useful! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi, wanted to try this project after reading your Medium post from a while back. Here's some configuration for local development using Docker if you're interested!