Comments (3)
We copy the folders because that is where the code is. For example, /api/Dockerfile
copies in the contents of /api/.*
and then that is what is run via node.
The docker-compose.yml is only used locally. The Dockerfile builds an image, so the files need to be inside the image. The docker-compose mounts the volumes so that our watch-scripts will detect changes and reload.
We are not copying in node_modules, though. We exclude node modules in the docker-compose.yml because the docker/run.sh file uses a yarn cache inside the container to make it so that modules are only downloaded when package.json changes
We also use the Dockerfile to build the image on the CI server, and that is why there is also a yarn
command in there to install the modules
from rpg-boilerplate.
That's make sense to me thank you.
So the db/Dockerfile need this COPY /postgres-data /var/lib/postgresql/data/pgdata
I think
from rpg-boilerplate.
Hmmmmm maybe... /postgres-data has generally just worked for me. However, I do not rely on the postgres image but rather I use RDS and deploy my migrations as the root user
from rpg-boilerplate.
Related Issues (20)
- workspaces package.json
- migrations prefix w/ rework? HOT 3
- Add generators for components etc
- Add to community project list
- Make docker containers have USER directive
- How can I connect to the DB Docker port? HOT 2
- How to use multiple schemas? HOT 3
- Need Deployment (AWS) docs HOT 33
- Build cycle is restarting constantly HOT 1
- Make it easier to customize
- Fix background image, currently just flashes
- Fix SSR server
- Unable to deploy sqitch database (--username requires a value!) HOT 2
- In need of updates HOT 12
- Use Postgraphile, not Postgraph or PostgraphQL HOT 1
- Numeric prefix on migrations HOT 1
- Complete Jest tests
- Integrate pnp-authentication-service
- dep versions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rpg-boilerplate.