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 # Also, you may need to remove and create the external volumes again for the steps
# below to work correctly. # below to work correctly.
docker compose up -d docker compose up -d
docker compose run bikebike rake db:setup docker compose run --rm bikebike rake db:setup
docker compose run bikebike rake db:migrate docker compose run --rm bikebike rake db:migrate
docker compose run bikebike rake assets:precompile docker compose run --rm bikebike rake assets:precompile
docker compose down docker compose down
docker compose up -d docker compose up -d

13
docker-compose.yml

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

Loading…
Cancel
Save