Skip to content

Commit

Permalink
feat(all): split compose file for full vs. partial sync of M2 files
Browse files Browse the repository at this point in the history
  • Loading branch information
damienwebdev committed Jun 1, 2020
1 parent e420246 commit 18a684f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 16 deletions.
21 changes: 11 additions & 10 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
#####
##########################################################################
# Docker Compose Environment Variables
# See https://docs.docker.com/compose/env-file/
#####
###########

####
##########################################################################
# Docker Compose Project Name
# See https://docs.docker.com/compose/reference/envvars/#compose_project_name
####
###########
COMPOSE_PROJECT_NAME=YOUR_PROJECT_NAME

####
##########################################################################
# Docker Compose File
# See https://docs.docker.com/compose/reference/envvars/#compose_file
####
# Mac And Linux
#COMPOSE_FILE=docker-compose.yml:docker-compose.dev.yml
# Windows
#COMPOSE_FILE=docker-compose.yml;docker-compose.dev.yml
###########
# Mac and Native Windows
# COMPOSE_FILE=docker-compose.yml:docker-compose.partialsync.yml

# Windows (WSL) and Linux
# COMPOSE_FILE=docker-compose.yml:docker-compose.fullsync.yml
12 changes: 12 additions & 0 deletions docker-compose.fullsync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version : '3'

services:
magento2:
image: graycore/magento-php:7.2-fpm-alpine-develop
volumes: &appvolumes
- ~/.composer:/var/www/.composer:delegated
- ../:/var/www/html/:cached
ingress:
volumes: *appvolumes
volumes:
appdata:
6 changes: 0 additions & 6 deletions docker-compose.dev.yml → docker-compose.partialsync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,5 @@ services:
- ../composer.lock:/var/www/html/composer.lock:delegated
ingress:
volumes: *appvolumes
# blackfire:
# image: blackfire/blackfire
# env_file:
# - blackfire/.env
# networks:
# - backend
volumes:
appdata:

0 comments on commit 18a684f

Please sign in to comment.