This repository has been archived by the owner on Jul 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
docker-sync #10
Closed
Closed
docker-sync #10
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
20e940f
implement docker-sync (use with unison to speed up things on macOS)
arosenhagen d28520a
update README
arosenhagen 3678f31
Merge branch 'master' into feature/docker-sync
arosenhagen ce181eb
make docker-sync optional in a separate docker-compose.xml
arosenhagen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
version: '2' | ||
|
||
services: | ||
app_server: | ||
build: dev-ops/docker/containers/php7 | ||
volumes: | ||
- ~/.composer/cache:/var/www/composer-cache-dir | ||
- app_server-sync:/project:nocopy | ||
- app_server-sync:/var/www/shopware:nocopy | ||
links: | ||
- app_mysql:mysql | ||
environment: | ||
TERM: xterm | ||
COMPOSER_CACHE_DIR: /var/www/composer-cache-dir | ||
ports: | ||
- "80:80" | ||
networks: | ||
sw_docker: | ||
ipv4_address: 10.100.111.46 | ||
|
||
app_mysql: | ||
build: dev-ops/docker/containers/mysql | ||
volumes: | ||
- ./dev-ops/docker/_volumes/app-mysql-data:/var/lib/mysql | ||
environment: | ||
MYSQL_ROOT_PASSWORD: root | ||
MYSQL_USER: app | ||
MYSQL_PASSWORD: app | ||
networks: | ||
sw_docker: | ||
ipv4_address: 10.100.111.47 | ||
|
||
app_es: | ||
build: dev-ops/docker/containers/elastic-search | ||
volumes: | ||
- ./dev-ops/docker/containers/elastic-search/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml | ||
- ./dev-ops/docker/_volumes/app-es-data:/usr/share/elasticsearch/data | ||
ports: | ||
- "9200:9200" | ||
- "9300:9300" | ||
environment: | ||
TERM: xterm | ||
ES_JAVA_OPTS: "-Xmx256m -Xms256m" | ||
networks: | ||
sw_docker: | ||
ipv4_address: 10.100.111.48 | ||
|
||
app_redis: | ||
build: dev-ops/docker/containers/redis | ||
volumes: | ||
- ./dev-ops/docker/_volumes/app-redisdata:/data | ||
networks: | ||
sw_docker: | ||
ipv4_address: 10.100.111.49 | ||
|
||
networks: | ||
sw_docker: | ||
driver: bridge | ||
ipam: | ||
driver: default | ||
config: | ||
- subnet: 10.100.111.0/24 | ||
gateway: 10.100.111.1 | ||
|
||
volumes: | ||
app_server-sync: | ||
external: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
version: "2" | ||
|
||
syncs: | ||
#IMPORTANT: ensure this name is unique and does not match your other application container name | ||
app_server-sync: #tip: add -sync and you keep consistent names as a convention | ||
sync_strategy: 'unison' | ||
src: './' |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, please add the right
sync_userid
andsync_groupid
. Also, exclude the unnecessary files e.g.sync_excludes: ['.git', '.idea', 'dev-ops/docker/_volumes', 'var', '.docker-sync']
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can see an example here: shopware/development@d161be8