Update the Dockerfile
(again) to use the new node
installation method.
Update the Dockerfile
to fix npm
installation error.
Remove npm update -g npm
from Dockerfile
.
To prevent issues with Linux, change
In your docker-compose.dev.yml
add to caddy.volumes
:
- public_media:/srv/public/media
- public_uploads:/srv/public/uploads
In your docker-compose.dev.yml
add to php.volumes
:
- public_media:/var/www/html/public/media
- public_uploads:/var/www/html/public/uploads
Modify volumes
adding:
public_media:
public_media:
public_uploads:
The PHP development image now uses the new installation method for node. Long story short, lts
and current
keywords can't be used anymore in NODE_VERSION
variable.
- Pull the updated PHP development image
- Carefully merge changes in
Dockerfile
,docker-compose.yml
,docker-compose.override.yml
- In your
docker-compose.dev.yml
ensurecaddy.volumes
containspublic_bundles:/srv/public/bundles
- In your
docker-compose.dev.yml
ensurephp.volumes
containspublic_bundles:/var/www/html/public/bundles
Minor changes regarding default MariaDB version and Docker mounts:
- The default version of MariaDB is now 11
- A new Docker mount,
public/bundles
, has been added to the development configuration
Even if not strictly necessary (MariaDB version is controlled in .env
), you can change the default value when MARIADB_VERSION
is empty:
- In your
Dockerfile
changeARG MARIADB_VERSION=10
toARG MARIADB_VERSION=11
- In your
docker-compose.yml
changedb.build.args.MARIADB_VERSION
to${MARIADB_VERSION:-11}
To add the new Docker mount:
- In your
docker-compose.dev.yml
addpublic_bundles:/var/www/html/public/bundles
tophp.volumes
- In your
docker-compose.dev.yml
addpublic_bundles:
tovolumes
Few changes regarding how environment variables are handled:
SERVER_DISABLE_WWW_REDIR
is nowSERVER_ENABLE_WWW_REDIRECT
DATABASE_DISABLE_MIGRATIONS
is nowDATABASE_ENABLE_MIGRATIONS
If your .env.local
explicitly define SERVER_DISABLE_WWW_REDIR
:
- If
SERVER_DISABLE_WWW_REDIR
is a non-empty string then setSERVER_ENABLE_WWW_REDIRECT=false
- Remove the old
SERVER_DISABLE_WWW_REDIR
If your .env.local
explicitly define DATABASE_DISABLE_MIGRATIONS
:
- If
DATABASE_DISABLE_MIGRATIONS
is an empty string then setDATABASE_ENABLE_MIGRATIONS=true
, otherwise setDATABASE_ENABLE_MIGRATIONS=false
- Remove the old
DATABASE_DISABLE_MIGRATIONS
If your distribution doesn't include the database:
- In your
docker-compose.yml
changephp.environment.DATABASE_DISABLE_MIGRATIONS: true
tophp.environment.DATABASE_ENABLE_MIGRATIONS: false
Finally, pull the updated images
docker pull symfonysail/php-prod
docker pull symfonysail/php-dev
docker pull symfonysail/caddy-base