Skip to content

Commit c4a55e1

Browse files
author
Julien Neuhart
committed
Update docker-compose.yml so that API service creates a fake .env file on startup
1 parent 8f1401a commit c4a55e1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docker-compose.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,10 @@ services:
5353
PHP_EXTENSION_REDIS: "1"
5454
PHP_EXTENSION_INTL: "1"
5555
PHP_INI_MEMORY_LIMIT: "1G"
56-
STARTUP_COMMAND_1: "composer install || composer install --pref-source"
57-
STARTUP_COMMAND_2: "php bin/console doctrine:migrations:migrate -n --allow-no-migration" #FIXME: if no flag --allow-no-migration, the command fails. Why?
58-
STARTUP_COMMAND_3: "php bin/console app:init-storage:minio"
56+
STARTUP_COMMAND_1: "touch .env" # Create a fake .env file so that Symfony does not complain on startup.
57+
STARTUP_COMMAND_2: "composer install || composer install --pref-source" # --pref-source might be required for Vagrant user.
58+
STARTUP_COMMAND_3: "php bin/console doctrine:migrations:migrate -n --allow-no-migration" #FIXME: if no flag --allow-no-migration, the command fails. Why?
59+
STARTUP_COMMAND_4: "php bin/console app:init-storage:minio"
5960
# Symfony.
6061
APP_ENV: "dev"
6162
APP_SECRET: "$APP_SECRET"

0 commit comments

Comments
 (0)