title: Admin user fails in rocketchat
body: <p>I have been running rocketchat on a cloud instance. I have used the parameters specified on the below document in rocketchat for creating admin user through docker-compose in yaml file.</p>
  <p><a href="https://docs.rocket.chat/guides/administrator-guides/create-the-first-admin" rel="noreferrer">https://docs.rocket.chat/guides/administrator-guides/create-the-first-admin</a></p>
  <p>I am not able to create a admin user as my variables are correctly specified.</p>
  <p>docker-compose.yaml</p>
  <pre><code>version: '3.8'
  
  services:
    rocketchat:
      image: rocketchat/rocket.chat:latest
      container_name: $ROCKETCHAT_CONTAINER_NAME
      command: &gt;
        bash -c
          &quot;for i in `seq 1 30`; do
            node main.js &amp;&amp;
            s=$$? &amp;&amp; break || s=$$?;
            echo \&quot;Tried $$i times. Waiting 5 secs...\&quot;;
            sleep 5;
          done; (exit $$s)&quot;
      restart: unless-stopped
      volumes:
        - ./uploads:/app/uploads
      depends_on:
        - mongo
      environment:
        - PORT=3000
        - ROOT_URL=http://xxxxxxxxx:3000
        - MONGO_URL=mongodb://mongo:27017/rocketchat
        - MONGO_OPLOG_URL=mongodb://mongo:27017/local
        - MAIL_URL=smtp://smtp.email
        - ADMIN_USERNAME=admin
        - ADMIN_PASS=password
        - ADMIN_EMAIL=beulah@xxxxxx.com
      ports:
        - 3000:$ROCKETCHAT_PORT
      labels:
        - &quot;traefik.backend=rocketchat&quot;
        - &quot;traefik.frontend.rule=Host: your.domain.tld&quot;
      networks:
        - $ROCKETCHAT_NETWORK
  
    mongo:
      image: mongo:$MONGO_IMAGE_TAG
      container_name: $MONGO_CONTAINER_NAME
      restart: unless-stopped
      volumes:
       - ./data/db:/data/db
      command: mongod --smallfiles --oplogSize 128 --replSet rs0 --storageEngine=mmapv1
      env_file: .env
      labels:
        - &quot;traefik.enable=false&quot;
      networks:
        - $ROCKETCHAT_NETWORK
  
    mongo-init-replica:
      image: mongo:$MONGO_IMAGE_TAG
      container_name: $MONGO_REPLICA_CONTAINER_NAME
      command: &gt;
        bash -c
          &quot;for i in `seq 1 30`; do
            mongo mongo/rocketchat --eval \&quot;
              rs.initiate({
                _id: 'rs0',
                members: [ { _id: 0, host: 'localhost:27017' } ]})\&quot; &amp;&amp;
            s=$$? &amp;&amp; break || s=$$?;
            echo \&quot;Tried $$i times. Waiting 5 secs...\&quot;;
            sleep 5;
          done; (exit $$s)&quot;
      depends_on:
        - mongo
      env_file: .env
      networks:
        - $ROCKETCHAT_NETWORK
  
  networks:
    rocketchat:
  </code></pre>