Browse Source

Development improvements: Don't save temp containers, and recreate volumes by not making them external.

master
Jonathan Rosenbaum 1 year ago
parent
commit
437d093486
  1. 6
      docker-compose.build
  2. 13
      docker-compose.yml

6
docker-compose.build

@ -5,8 +5,8 @@
# Also, you may need to remove and create the external volumes again for the steps
# below to work correctly.
docker compose up -d
docker compose run bikebike rake db:setup
docker compose run bikebike rake db:migrate
docker compose run bikebike rake assets:precompile
docker compose run --rm bikebike rake db:setup
docker compose run --rm bikebike rake db:migrate
docker compose run --rm bikebike rake assets:precompile
docker compose down
docker compose up -d

13
docker-compose.yml

@ -115,17 +115,18 @@ services:
max-size: "10m"
max-file: "3"
# Create this volumes, docker volume create me
# or comment our external
# Currently set to false for all volumes for development,
# but better strategy would be to keep or volumes true like
# *_db
volumes:
bikebikebike_db:
external: true
external: false
bikebikebike:
external: true
external: false
bikebikebike_bundle:
external: true
external: false
bikebikebike_uploads:
external: true
external: false
# Remove this network if you don't use it
networks:

Loading…
Cancel
Save