Skip to content

Commit bfa1d87

Browse files
Set uid and gid from env var.
1 parent 46200be commit bfa1d87

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ env:
44
- MINIO_VER="RELEASE.2019-09-26T19-42-35Z"
55
- ALPINE_VER="3.10"
66
- COMPOSE_HTTP_TIMEOUT="300"
7+
- UID="2000"
8+
- GID="2000"
79
services:
810
- docker
911
main: &main

LNX-docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ services:
3636
"
3737
# ports:
3838
# - "8888:8888"
39-
user: 2000:2000
39+
user: ${UID}:${GID}
4040
volumes:
4141
- .:/src
4242
- /tmp/.X11-unix:/tmp/.X11-unix:rw

0 commit comments

Comments
 (0)