Skip to content

Instantly share code, notes, and snippets.

@Lefaux
Created November 8, 2019 09:17
Show Gist options
  • Save Lefaux/c52e455f0e4ac11266eda23996a92fb6 to your computer and use it in GitHub Desktop.
Save Lefaux/c52e455f0e4ac11266eda23996a92fb6 to your computer and use it in GitHub Desktop.
Shopware6 DDEV Zeug
version: "3.6"
services:
mysql:
hostname: ${DDEV_SITENAME}-mysql
container_name: ddev-${DDEV_SITENAME}-mysql
labels:
com.ddev.site-name: ${DDEV_SITENAME}
com.ddev.approot: $DDEV_APPROOT
# Versions other than 5.7 should work here.
image: mysql:5.7
restart: "no"
environment:
MYSQL_ROOT_PASSWORD: "root"
ports:
# <Port exposed> : < MySQL Port running inside container>
- "3306"
volumes:
- type: "volume"
source: mysql-db
target: "/var/lib/mysql"
volume:
nocopy: true
- type: "bind"
source: "."
target: "/mnt/ddev_config"
# Optionally send startup flags.
# command: --sql_mode=""
web:
links:
- mysql:mysql
# Names our volume
volumes:
mysql-db:
# Shopware install / update
location /recovery/install {
index index.php;
try_files $uri /recovery/install/index.php$is_args$args;
}
location /recovery/update/ {
location /recovery/update/assets {
}
if (!-e $request_filename){
rewrite . /recovery/update/index.php last;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment