Skip to content

Commit e6c8077

Browse files
authored
Merge pull request #8 from solutionDrive/ISSUE-6-shared-volumes
Changed to more then one volume
2 parents 8100d05 + 57fc95a commit e6c8077

File tree

4 files changed

+23
-19
lines changed

4 files changed

+23
-19
lines changed

bin/runInSdTest.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fi
2626
PROJECT_DIR="$( dirname $( dirname $( dirname "${PACKAGE_DIR}") ) )"
2727
PROJECT_NAME="$( basename ${PROJECT_DIR} | tr '[:upper:]' '[:lower:]' )"
2828
# TODO: Think about a good solution for a different shopware version
29-
PHP_CONTAINER_NAME="${PROJECT_NAME}_shopware546_php${VERSION}_1"
29+
PHP_CONTAINER_NAME="${PROJECT_NAME}_shopware54_php${VERSION}_1"
3030
WORK_DIR=${WORK_DIR:-"/var/www/shopware54_php${VERSION}"}
3131

3232
docker exec --workdir ${WORK_DIR} -it ${PHP_CONTAINER_NAME} ${@:2}

bin/sdTest.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function run_container {
8787
function start_container {
8888
prepare
8989
echo_configuration
90-
docker_compose_cmd up --no-start $@
90+
docker_compose_cmd up --no-start --remove-orphans $@
9191
docker_compose_cmd start $@
9292
}
9393

docker-compose.yml

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,31 @@ services:
1212
- "10871:10871"
1313
- "10872:10872"
1414
volumes:
15-
- shared_www:/var/www:delegated
15+
- shopware54_php72:/var/www/shopware54_php72:delegated
16+
- shopware54_php71:/var/www/shopware54_php71:delegated
17+
- shopware54_php70:/var/www/shopware54_php70:delegated
1618
- ${PROJECT_DIR}:/opt/host:delegated
1719
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
1820
- ./nginx/include.shopware.conf:/etc/nginx/include.shopware.conf
1921
- ./nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf
2022
links:
21-
- shopware546_php72
22-
- shopware546_php71
23-
- shopware546_php70
23+
- shopware54_php72
24+
- shopware54_php71
25+
- shopware54_php70
2426
- mysql
2527
depends_on:
26-
- shopware546_php72
27-
- shopware546_php71
28-
- shopware546_php70
28+
- shopware54_php72
29+
- shopware54_php71
30+
- shopware54_php70
2931

30-
shopware546_php72:
32+
shopware54_php72:
3133
image: solutiondrive/docker-shopware-container:shopware5.4.6-php7.2
3234
environment:
3335
- TZ=Europe/Berlin
3436
- DB_DATABASE=shopware54_php72
3537
- WEB_HOST=localhost:10872
3638
volumes:
37-
- shared_www:/var/www:delegated
39+
- shopware54_php72:/var/www/shopware54_php72:delegated
3840
- ${PROJECT_DIR}:/opt/host:delegated
3941
- ./php/php.ini:/usr/local/etc/php/conf.d/zzz-override-php.ini
4042
- ./php/www.conf:/usr/local/etc/php-fpm.d/www.conf
@@ -43,14 +45,14 @@ services:
4345
depends_on:
4446
- mysql
4547

46-
shopware546_php71:
48+
shopware54_php71:
4749
image: solutiondrive/docker-shopware-container:shopware5.4.6-php7.1
4850
environment:
4951
- TZ=Europe/Berlin
5052
- DB_DATABASE=shopware54_php71
5153
- WEB_HOST=localhost:10871
5254
volumes:
53-
- shared_www:/var/www:delegated
55+
- shopware54_php71:/var/www/shopware54_php71:delegated
5456
- ${PROJECT_DIR}:/opt/host:delegated
5557
- ./php/php.ini:/usr/local/etc/php/conf.d/zzz-override-php.ini
5658
- ./php/www.conf:/usr/local/etc/php-fpm.d/www.conf
@@ -59,14 +61,14 @@ services:
5961
depends_on:
6062
- mysql
6163

62-
shopware546_php70:
64+
shopware54_php70:
6365
image: solutiondrive/docker-shopware-container:shopware5.4.6-php7.0
6466
environment:
6567
- TZ=Europe/Berlin
6668
- DB_DATABASE=shopware54_php70
6769
- WEB_HOST=localhost:10870
6870
volumes:
69-
- shared_www:/var/www:delegated
71+
- shopware54_php70:/var/www/shopware54_php70:delegated
7072
- ${PROJECT_DIR}:/opt/host:delegated
7173
- ./php/php.ini:/usr/local/etc/php/conf.d/zzz-override-php.ini
7274
- ./php/www.conf:/usr/local/etc/php-fpm.d/www.conf
@@ -85,4 +87,6 @@ services:
8587
- "10331:3306"
8688

8789
volumes:
88-
shared_www:
90+
shopware54_php72:
91+
shopware54_php71:
92+
shopware54_php70:

nginx/conf.d/default.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ server {
44

55
#access_log /var/logs/nginx_access.log;
66
root /var/www/shopware54_php72;
7-
set $fastcgi_pass shopware546_php72:9000;
7+
set $fastcgi_pass shopware54_php72:9000;
88

99
include /etc/nginx/include.shopware.conf;
1010
}
@@ -15,7 +15,7 @@ server {
1515

1616
#access_log /var/logs/nginx_access.log;
1717
root /var/www/shopware54_php71;
18-
set $fastcgi_pass shopware546_php71:9000;
18+
set $fastcgi_pass shopware54_php71:9000;
1919

2020
include /etc/nginx/include.shopware.conf;
2121
}
@@ -26,7 +26,7 @@ server {
2626

2727
#access_log /var/logs/nginx_access.log;
2828
root /var/www/shopware54_php70;
29-
set $fastcgi_pass shopware546_php70:9000;
29+
set $fastcgi_pass shopware54_php70:9000;
3030

3131
include /etc/nginx/include.shopware.conf;
3232
}

0 commit comments

Comments
 (0)