From 6cdd9f8df4de5afb41184951966c37dfdeb1315b Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Wed, 10 Apr 2024 18:11:31 +0200 Subject: [PATCH] docker-compose.yml: Update Docker Compose versiom to v3.8 and optimize env - Upgraded Docker Compose file version from 3 to 3.8 to leverage new features and improvements. - Reorganized the service configuration for tuxbox-build by specifying `container_name` at the appropriate level and shifting from inline `environment` variables to an external `.env` file for a cleaner and more maintainable setup. - Removed redundant environment variable definitions and comments to streamline the configuration. Better maintainability of Docker setup and ensures compatibility with newer Docker Compose features. --- docker-compose.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 76ae773..cde4a8e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,8 +1,13 @@ -version: '3' +version: '3.8' services: tuxbox-build: + container_name: tuxbox-build image: tuxbox-build +# environment: +# - BUILDENV_VERSION=3.2.4 + env_file: + - .env build: context: . dockerfile: Dockerfile @@ -38,11 +43,8 @@ services: - USER_VOLUME_DATADIR=${USER_VOLUME_DATADIR} - XDG_CONFIG_HOME=${XDG_CONFIG_HOME} - XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR} - container_name: tuxbox-build - env_file: - - .env - #environment: - #- BUILDENV_VERSION=3.2.4 + + devices: - /dev/dri:/dev/dri ports: