Skip to content

Commit

Permalink
Provide environment to services
Browse files Browse the repository at this point in the history
  • Loading branch information
mjanser committed Oct 28, 2024
1 parent 255ccb3 commit 0f046df
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
3 changes: 0 additions & 3 deletions compose.override.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ services:
environment:
# Permanently enable the debug mode
XDEBUG_MODE: develop,debug
# Add Blackfire ID and Token for Profiling
BLACKFIRE_CLIENT_ID: the-client-id-here
BLACKFIRE_CLIENT_TOKEN: the-token-here
# Mount your local Composer cache folder into the project to re-use the host local cache, if existing
volumes:
- "./:/www:z"
Expand Down
2 changes: 1 addition & 1 deletion compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ services:
image: getmeili/meilisearch:v1.10
restart: unless-stopped
environment:
MEILI_NO_ANALYTICS: '1'
MEILI_NO_ANALYTICS: 'true'
MEILI_MASTER_KEY: ${MEILI_MASTER_KEY:-cWwx3jxAworhaQAVHeRYlK37wdVnLNc6P_Uyz8WLTyM}
volumes:
- meilisearch_data:/meili_data:rw
Expand Down
2 changes: 2 additions & 0 deletions docker/services/doctrine-migrations/up
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/sh
with-contenv
foreground { echo "Doctrine: running database migrations ..." }
su php -s "/bin/ash" \
-c "/www/bin/console doctrine:migrations:migrate -n -v"
3 changes: 2 additions & 1 deletion docker/services/messenger-worker-1/run
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv sh
#!/bin/sh
with-contenv
exec 2>&1
su php \
-s "/bin/ash" \
Expand Down
3 changes: 2 additions & 1 deletion docker/services/messenger-worker-2/run
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv sh
#!/bin/sh
with-contenv
exec 2>&1
su php \
-s "/bin/ash" \
Expand Down
1 change: 1 addition & 0 deletions docker/services/php-fpm/run
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/command/execlineb -P

with-contenv
php-fpm83

0 comments on commit 0f046df

Please sign in to comment.