diff --git a/.env.sample b/.env.sample
index c741e89..d26efeb 100644
--- a/.env.sample
+++ b/.env.sample
@@ -1,2 +1,3 @@
+USER_ID=1000 # Set if your user id is different (`id -u`)
 APPLICATION_HOST=localhost
 ESDATA=../esdata
\ No newline at end of file
diff --git a/Dockerfile b/Dockerfile
index bbbb41b..9d709a4 100755
--- a/Dockerfile
+++ b/Dockerfile
@@ -19,7 +19,7 @@ RUN mkdir -p /home/srm/tmp
 #COPY Gemfile.lock /home/srm/tmp/Gemfile.lock
 
 ARG USER_ID=1000
-RUN groupadd srm && useradd -D --uid $USER_ID -g srm srm
+RUN groupadd srm && useradd --uid $USER_ID -g srm srm
 RUN chown -R srm:srm /home/srm
 USER srm
 
diff --git a/docker-compose.yml b/docker-compose.yml
index 7a71c09..f1e4b5f 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -5,7 +5,7 @@ services:
     build:
       context: .
       args: 
-        - USER_ID=1000
+        - USER_ID=${USER_ID=1000}
     volumes:
       - .:/app
     ports: