  rocketchat:
{
my $version = ${rocketchat}{Version} || "1.0.0";
#$OUT .= "      image: registry.rocket.chat/rocketchat/rocket.chat:$version";
$OUT .= "      image: rocketchat/rocket.chat:$version";
}
      container_name: rocketchat
      environment:
# Use ?replSet=rs0 if you have replica sets (this is the templates-custom template)
        - MONGO_URL=mongodb://127.0.0.1:27017/rocketchat?replicaSet=rs0
        - MONGO_OPLOG_URL=mongodb://127.0.0.1:27017/local?replicaSet=rs0
{
$OUT .= "        - ROOT_URL=https://$rocketchat{rootURL}\n";
$OUT .= "        - MAIL_URL=smtp://$rocketchat{mailURL}";
}
        - HTTP_FORWARDED_COUNT=1
        - Accounts_UseDNSDomainCheck=True
        - OVERWRITE_SETTING_Accounts_TwoFactorAuthentication_Enforce_Password_Fallback=false
        - OVERWRITE_SETTING_Accounts_TwoFactorAuthentication_Enabled=false
#    ports:
#      - 3000:3000
      network_mode: host
# Specify an absolute path mapping
      volumes:
        - /opt/uploads/:/opt/uploads/
      restart: on-failure:2
# Might need the UID/GID rather than name
# user: dockerroot:dockerroot
#    user: 392:390
# Memory Limit
      mem_limit: 2048MB

