Created
February 20, 2019 23:07
-
-
Save badri/705d9eb51a20c17825bc21caf4381bcc to your computer and use it in GitHub Desktop.
docker compose for rundeck
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
rundeck: | |
image: lakshminp/rundeck:3.0.13 | |
volumes: | |
- ./data:/home/rundeck/server/data | |
depends_on: | |
- db | |
environment: | |
- RUNDECK_DATABASE_DRIVER=org.postgresql.Driver | |
- RUNDECK_DATABASE_URL=jdbc:postgresql://db:5432/postgres?autoReconnect=true | |
- RUNDECK_DATABASE_USERNAME=postgres | |
- RUNDECK_DATABASE_PASSWORD=secret | |
ports: | |
- "4440:4440" | |
db: | |
image: postgres | |
environment: | |
- POSTGRES_PASSWORD=secret |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM rundeck/rundeck:3.0.13 | |
RUN sed -i 's|dataSource.url = {{ getv("/rundeck/database/url", "jdbc:h2:file:/home/rundeck/server/data/grailsdb;MVCC=true") }}|dataSource.url = {{ getenv("RUNDECK_DATABASE_URL") }}|g' /etc/remco/templates/rundeck-config.properties | |
RUN sed -i 's|dataSource.username = {{ getv("/rundeck/database/username", "") }}|dataSource.username={{ getenv("RUNDECK_DATABASE_USERNAME") }}|g' /etc/remco/templates/rundeck-config.properties | |
RUN sed -i 's|dataSource.password = {{ getv("/rundeck/database/password", "") }}|dataSource.password={{ getenv("RUNDECK_DATABASE_PASSWORD") }}|g' /etc/remco/templates/rundeck-config.properties |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment