Hi Kevin,
I did an example overwriting the realm.properties file through COPY sentence on Dockerfile, take a look:
Dockerfile (with COPY sentence):
FROM rundeck/rundeck:3.3.2
COPY --chown=rundeck:root volume/realm.properties /home/rundeck/server/config
docker-compose.yml:
version: '3'
services:
rundeckserver:
build:
context: .
dockerfile: Dockerfile
args:
url: http://localhost:4440
ports:
- "4440:4440"
restart: always
Of course, you need a directory named “volume” with the “new” realm.properties file (with the “new password”, more info here):
#
# This file defines users passwords and roles for a HashUserRealm
#
# The format is
# <username>: <password>[,<rolename> ...]
#
# Passwords may be clear text, obfuscated or checksummed. The class
# org.mortbay.util.Password should be used to generate obfuscated
# passwords or password checksums
#
# This sets the temporary user accounts for the Rundeck app
#
admin:YourNewPassword,user,admin
user:user,user
#
# example users matching the example aclpolicy template roles
#
#project-admin:admin,user,project_admin
#job-runner:admin,user,job_runner
#job-writer:admin,user,job_writer
#job-reader:admin,user,job_reader
#job-viewer:admin,user,job_viewer
To build: docker-compose build
To run: docker-compose up
Regards!