Prerequisites
Make sure you Docker installed and running. If not, check out this post.
Installing Redmine for Docker
In your home folder create a new folder redmine. In that folder, create a new file docker-compose.yml with the following contents
version: '3.1'
services:
postgres:
image: postgres:15.2
restart: always
networks:
- redmine
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
- 'POSTGRES_PASSWORD=password'
- 'POSTGRES_DB=redmine'
redmine:
image: redmine:5.0.4
restart: always
networks:
- redmine
volumes:
- redmine-data:/usr/src/redmine/files
ports:
- 8000:3000
environment:
- 'REDMINE_DB_POSTGRES=postgres'
- 'REDMINE_DB_DATABASE=redmine'
- 'REDMINE_DB_PASSWORD=password'
volumes:
postgres-data:
redmine-data:
networks:
redmine:
driver: bridge
Next, to start the application, run the commands
sudo docker compose up -d && sudo docker compose logs -f
You can now access your Redmine application
References
- https://medium.com/@gurayy/setting-up-redmine-with-docker-be110387ba1c