Skip to content

Commit

Permalink
Using cached volume configuration to improve performance
Browse files Browse the repository at this point in the history
  • Loading branch information
clintonb committed Jun 7, 2017
1 parent 98a9a5e commit 35526b1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docker-compose-host.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ version: "3"
services:
credentials:
volumes:
- ${DEVSTACK_WORKSPACE}/credentials:/edx/app/credentials/credentials
- ${DEVSTACK_WORKSPACE}/credentials:/edx/app/credentials/credentials:cached
discovery:
volumes:
- ${DEVSTACK_WORKSPACE}/course-discovery:/edx/app/discovery/discovery
- ${DEVSTACK_WORKSPACE}/course-discovery:/edx/app/discovery/discovery:cached
ecommerce:
volumes:
- ${DEVSTACK_WORKSPACE}/ecommerce:/edx/app/ecommerce/ecommerce
- ${DEVSTACK_WORKSPACE}/ecommerce:/edx/app/ecommerce/ecommerce:cached
lms:
volumes:
- ${DEVSTACK_WORKSPACE}/edx-platform:/edx/app/edxapp/edx-platform
- ${DEVSTACK_WORKSPACE}/edx-platform:/edx/app/edxapp/edx-platform:cached
studio:
volumes:
- ${DEVSTACK_WORKSPACE}/edx-platform:/edx/app/edxapp/edx-platform
- ${DEVSTACK_WORKSPACE}/edx-platform:/edx/app/edxapp/edx-platform:cached
5 changes: 5 additions & 0 deletions docker-sync-marketing-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,27 @@ options:

syncs:
credentials-sync:
host_disk_mount_mode: 'cached'
src: '../credentials/'
sync_excludes: [ '.git', '.idea', 'node_modules', 'credentials/assets', 'credentials/static/bundles', 'webpack-stats.json' ]

discovery-sync:
host_disk_mount_mode: 'cached'
src: '../course-discovery/'
sync_excludes: [ '.git', '.idea', 'node_modules', 'course_discovery/assets', 'course_discovery/static/bower_components', 'course_discovery/static/build' ]

ecommerce-sync:
host_disk_mount_mode: 'cached'
src: '../ecommerce/'
sync_excludes: [ '.git', '.idea', 'node_modules', 'assets', 'ecommerce/static/bower_components', 'ecommerce/static/build' ]

edxapp-sync:
host_disk_mount_mode: 'cached'
src: '../edx-platform/'
sync_excludes: [ '.git', '.idea', 'node_modules', '.prereqs_cache' ]

marketing-sync:
host_disk_mount_mode: 'cached'
src: '../edx-mktg/docroot/'
sync_excludes: [ '.git', '.idea', 'node_modules', ]
sync_userid: 33
4 changes: 4 additions & 0 deletions docker-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,21 @@ options:

syncs:
credentials-sync:
host_disk_mount_mode: 'cached'
src: '../credentials/'
sync_excludes: [ '.git', '.idea' ]

discovery-sync:
host_disk_mount_mode: 'cached'
src: '../course-discovery/'
sync_excludes: [ '.git', '.idea' ]

ecommerce-sync:
host_disk_mount_mode: 'cached'
src: '../ecommerce/'
sync_excludes: [ '.git', '.idea' ]

edxapp-sync:
host_disk_mount_mode: 'cached'
src: '../edx-platform/'
sync_excludes: [ '.git', '.idea' ]

0 comments on commit 35526b1

Please sign in to comment.