mirror of
https://github.com/tuxbox-neutrino/docker-buildenv.git
synced 2025-08-26 13:12:42 +02:00
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.
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user