diff options
author | privatecore <privatecorepp@gmail.com> | 2024-04-13 20:12:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-13 14:12:02 -0400 |
commit | c8abb8c73e42163cc873f121b43590d4ec3fcdfb (patch) | |
tree | 5773f622862a88059a110516554683dbfd740aad /docker-compose.yml | |
parent | cdc72216c8b9282906fdd3634364a29c56973fd0 (diff) |
fix(Docker): Fix docker compose build failed when using USER with UID:GID != 1000 (#18731)
Diffstat (limited to 'docker-compose.yml')
-rw-r--r-- | docker-compose.yml | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/docker-compose.yml b/docker-compose.yml index b6ad632239..cfdfe1a5c2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -36,6 +36,10 @@ services: context: . target: db-import dockerfile: apps/docker/Dockerfile + args: + USER_ID: ${DOCKER_USER_ID:-1000} + GROUP_ID: ${DOCKER_GROUP_ID:-1000} + DOCKER_USER: ${DOCKER_USER:-acore} environment: AC_DATA_DIR: "/azerothcore/env/dist/data" AC_LOGS_DIR: "/azerothcore/env/dist/logs" @@ -57,6 +61,10 @@ services: context: . target: worldserver dockerfile: apps/docker/Dockerfile + args: + USER_ID: ${DOCKER_USER_ID:-1000} + GROUP_ID: ${DOCKER_GROUP_ID:-1000} + DOCKER_USER: ${DOCKER_USER:-acore} networks: - ac-network stdin_open: true @@ -94,6 +102,10 @@ services: context: . target: authserver dockerfile: apps/docker/Dockerfile + args: + USER_ID: ${DOCKER_USER_ID:-1000} + GROUP_ID: ${DOCKER_GROUP_ID:-1000} + DOCKER_USER: ${DOCKER_USER:-acore} networks: - ac-network tty: true @@ -119,7 +131,6 @@ services: ac-client-data-init: container_name: ac-client-data-init image: acore/ac-wotlk-client-data:${DOCKER_IMAGE_TAG:-master} - user: ${DOCKER_USER:-root} build: context: . target: client-data @@ -136,11 +147,14 @@ services: ac-tools: container_name: ac-tools image: acore/ac-wotlk-tools:${DOCKER_IMAGE_TAG:-master} - user: ${DOCKER_USER:-root} build: context: . target: tools dockerfile: apps/docker/Dockerfile + args: + USER_ID: ${DOCKER_USER_ID:-1000} + GROUP_ID: ${DOCKER_GROUP_ID:-1000} + DOCKER_USER: ${DOCKER_USER:-acore} working_dir: /azerothcore/env/client/ volumes: # this is not the directory of the extracted data! It's the client folder used by the extractors @@ -159,7 +173,6 @@ services: ac-dev-server: tty: true image: acore/ac-wotlk-dev-server:${DOCKER_IMAGE_TAG:-master} - user: ${DOCKER_USER:-root} build: context: . dockerfile: ./apps/docker/Dockerfile.dev-server |