From 10e531b9c14164f78fe7d2501d49e7863bb03657 Mon Sep 17 00:00:00 2001 From: Dave Smith-Hayes Date: Thu, 21 Nov 2024 22:24:33 -0500 Subject: [PATCH] Add an example override for the CLI container. --- .gitignore | 1 + app/composer.lock | 4 ++-- docker-compose.override.yml.sample | 4 ++++ docker-compose.yml | 1 + 4 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 docker-compose.override.yml.sample diff --git a/.gitignore b/.gitignore index 5626832..0015d4c 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ app/node_modules app/vendor app/.env +docker-compose.override.yml diff --git a/app/composer.lock b/app/composer.lock index 38261f4..9caa87b 100644 --- a/app/composer.lock +++ b/app/composer.lock @@ -6248,12 +6248,12 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, "platform": { "ext-pdo": "*" }, - "platform-dev": [], + "platform-dev": {}, "plugin-api-version": "2.6.0" } diff --git a/docker-compose.override.yml.sample b/docker-compose.override.yml.sample new file mode 100644 index 0000000..080d15a --- /dev/null +++ b/docker-compose.override.yml.sample @@ -0,0 +1,4 @@ +version: '3.8' +services: + cli: + user: "1000:1000" diff --git a/docker-compose.yml b/docker-compose.yml index cc5bb46..27fb88c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,6 +15,7 @@ services: dockerfile: 'dev/php/Dockerfile' volumes: - './app:/var/www/slovocast' + user: "${UID}:${GID}" entrypoint: [ "bash", "-c" ] profiles: - noboot