// file
git rm package-lock.json --cached
// directory
git rm -r directory --cached
then commit changes
| services: | |
| db: | |
| # We use a mariadb image which supports both amd64 & arm64 architecture | |
| image: mariadb:latest | |
| # If you really want to use MySQL, uncomment the following line | |
| #image: mysql:8.0.27 | |
| command: '--default-authentication-plugin=mysql_native_password' | |
| volumes: | |
| - db_data:/var/lib/mysql | |
| restart: always |