-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Q: Docker #1
Comments
seems noboyd maintain this |
@bradschafer, sorry for the long delay - I just saw this. I have been busy working on V2 of this project, adding many more features including a reusable data-access repository pattern, field and class validation, and full social login. This will include the type of Docker workflow you mention. It should be available in 2 - 4 weeks. However, if you are still wrestling with this, and need for a V1 implementation, LMK and I will take a look at. |
Hi! |
@heralight - the master branch is now has the V2 features I described. I still have the following to add:
|
Hello, thank you for reply, Unfortunately, in the meantime, I left with another open source project… But I will keep an eye on yours. Anyway, about Docker, I can give some tips relative to your project. my actual docker usage_ at root project I have 2 docker-compose, the second extend the first: version: '3'
services:
mongo:
image: mongo:3.6
authservice:
build: ./authservice
ports:
- "3000:3000"
env_file:
- authservice-prod.env
links:
- mongo
depends_on:
- mongo
volumes:
- ./authservice:/starter
- /starter/node_modules docker-compose.dev.yml version: '3'
services:
mongo:
image: mongo:3.6
ports:
- 27017:27017
authservice:
build: ./authservice
user: root
command: >
sh -c "npm install --production &&
pm2-dev pm2.dev.yml"
env_file:
- authservice-dev.env
And I have a Makefile like:
Why a docker-compose.dev.ymlTo override some values, like which command to run on docker start in dev mode.
But in dev I want hot reloading, with nom update, all on my local mount point then I override it with
You can only mount local volume on dev mode,…etc. In your api/docker-compose.yml Prefer You don’t need to expose port, do it in your docker-compose files only depending on your mode. To be full reusable and docker compliant, your application need to recover its configuration from environment variables only and / or a etcd like service, in one word completly stateless. Best regards, Alexandre |
I am also following this project & and am interested in learning more about it. Is there a way I can reach out to you to chat about a few of the design decisions I would like to understand better? |
recRent - would be happy to chat. I'll spin up a separate thread |
I am working my way through this wonderful repo, however, I am unable to get the API docker-compose running. I've been digging through it some and it seems to be that the MongoDB connection fails, so the API server fails. I've been seeing if I can get it to restart on fail in the compose but no luck so far.
In general I'd really like to get to this point:
Basically everything containerized with two 'up' modes dev/prod.
If I make progress, or if you have any hints lets try to post them here, or perhaps I can create a PR.
The text was updated successfully, but these errors were encountered: