Update ddev config

This commit is contained in:
Björn Fromme
2020-01-24 11:57:12 +01:00
parent 1beadfaa24
commit e7d30d3995
2 changed files with 158 additions and 14 deletions
+12 -12
View File
@@ -5,7 +5,7 @@ services:
db:
container_name: ddev-${DDEV_SITENAME}-db
build:
context: '/Users/fromme/www/ep-reisen-web/.ddev/.dbimageBuild'
context: '/Users/fromme/www/ep-reisen/.ddev/.dbimageBuild'
args:
BASE_IMAGE: $DDEV_DBIMAGE
username: 'fromme'
@@ -25,7 +25,7 @@ services:
- ddev-global-cache:/mnt/ddev-global-cache
restart: "no"
user: "$DDEV_UID:$DDEV_GID"
hostname: ep-reisen-web-db
hostname: ep-reisen-db
ports:
- "127.0.0.1:$DDEV_HOST_DB_PORT:3306"
labels:
@@ -36,8 +36,8 @@ services:
environment:
- COLUMNS=$COLUMNS
- LINES=$LINES
- TZ=
- DDEV_PROJECT=ep-reisen-web
- TZ=Europe/Berlin
- DDEV_PROJECT=ep-reisen
command: "$DDEV_MARIADB_LOCAL_COMMAND"
healthcheck:
interval: 1s
@@ -48,7 +48,7 @@ services:
web:
container_name: ddev-${DDEV_SITENAME}-web
build:
context: '/Users/fromme/www/ep-reisen-web/.ddev/.webimageBuild'
context: '/Users/fromme/www/ep-reisen/.ddev/.webimageBuild'
args:
BASE_IMAGE: $DDEV_WEBIMAGE
username: 'fromme'
@@ -73,7 +73,7 @@ services:
restart: "no"
user: "$DDEV_UID:$DDEV_GID"
hostname: ep-reisen-web-web
hostname: ep-reisen-web
links:
- db:db
@@ -96,7 +96,7 @@ services:
- VIRTUAL_HOST=$DDEV_HOSTNAME
- COLUMNS=$COLUMNS
- LINES=$LINES
- TZ=
- TZ=Europe/Berlin
# HTTP_EXPOSE allows for ports accepting HTTP traffic to be accessible from <site>.ddev.site:<port>
# To expose a container port to a different host port, define the port as hostPort:containerPort
- HTTP_EXPOSE=${DDEV_ROUTER_HTTP_PORT}:80,${DDEV_MAILHOG_PORT}:8025
@@ -104,7 +104,7 @@ services:
# To expose an HTTPS port, define the port as securePort:containerPort.
- HTTPS_EXPOSE=${DDEV_ROUTER_HTTPS_PORT}:80
- SSH_AUTH_SOCK=/home/.ssh-agent/socket
- DDEV_PROJECT=ep-reisen-web
- DDEV_PROJECT=ep-reisen
labels:
com.ddev.site-name: ${DDEV_SITENAME}
com.ddev.platform: ddev
@@ -112,7 +112,7 @@ services:
com.ddev.approot: $DDEV_APPROOT
external_links:
- "ddev-router:ep-reisen-web.ddev.site"
- "ddev-router:ep-reisen.ddev.site"
healthcheck:
interval: 1s
@@ -135,12 +135,12 @@ services:
- db:db
ports:
- "80"
hostname: ep-reisen-web-dba
hostname: ep-reisen-dba
environment:
- PMA_USER=db
- PMA_PASSWORD=db
- VIRTUAL_HOST=$DDEV_HOSTNAME
- TZ=
- TZ=Europe/Berlin
# HTTP_EXPOSE allows for ports accepting HTTP traffic to be accessible from <site>.ddev.site:<port>
- HTTP_EXPOSE=${DDEV_PHPMYADMIN_PORT}:8036
healthcheck:
@@ -170,7 +170,7 @@ volumes:
driver_opts:
type: nfs
o: "addr=host.docker.internal,hard,nolock,rw"
device: ":/Users/fromme/www/ep-reisen-web"
device: ":/Users/fromme/www/ep-reisen"