Git Product home page Git Product logo

Comments (3)

chadfurman avatar chadfurman commented on May 30, 2024

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.

Antibioticvz avatar Antibioticvz commented on May 30, 2024

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.

chadfurman avatar chadfurman commented on May 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.