Skip to content

Commit d2c4f4f

Browse files
committed
Add DRUSH_OPTIONS_URI to env for phpfpm container
1 parent a720f34 commit d2c4f4f

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

templates/drupal-10/docker-compose.server.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ services:
1717
environment:
1818
- PHP_MAX_EXECUTION_TIME=30
1919
- PHP_MEMORY_LIMIT=128M
20+
- COMPOSER_VERSION=2
21+
# Let drush know the site uri (makes using --uri redundant)
22+
- DRUSH_OPTIONS_URI=https://${COMPOSE_SERVER_DOMAIN}
2023
depends_on:
2124
- memcached
2225
volumes:

templates/drupal-10/docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ services:
4444
- PHP_SENDMAIL_PATH=/usr/bin/msmtp --host=mail --port=1025 --read-recipients --read-envelope-from
4545
- DOCKER_HOST_DOMAIN=${COMPOSE_DOMAIN}
4646
- PHP_IDE_CONFIG=serverName=localhost
47+
# Let drush know the site uri (makes using --uri redundant)
48+
- DRUSH_OPTIONS_URI=http://${COMPOSE_DOMAIN}
4749
depends_on:
4850
mariadb:
4951
condition: service_healthy

templates/drupal-9/docker-compose.server.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ services:
1717
environment:
1818
- PHP_MAX_EXECUTION_TIME=30
1919
- PHP_MEMORY_LIMIT=128M
20+
- COMPOSER_VERSION=2
21+
# Let drush know the site uri (makes using --uri redundant)
22+
- DRUSH_OPTIONS_URI=https://${COMPOSE_SERVER_DOMAIN}
2023
depends_on:
2124
- memcached
2225
volumes:

templates/drupal-9/docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ services:
4444
- PHP_SENDMAIL_PATH=/usr/bin/msmtp --host=mail --port=1025 --read-recipients --read-envelope-from
4545
- DOCKER_HOST_DOMAIN=${COMPOSE_DOMAIN}
4646
- PHP_IDE_CONFIG=serverName=localhost
47+
# Let drush know the site uri (makes using --uri redundant)
48+
- DRUSH_OPTIONS_URI=http://${COMPOSE_DOMAIN}
4749
depends_on:
4850
mariadb:
4951
condition: service_healthy

0 commit comments

Comments
 (0)