While deploying stacks (`docker-compose`) using Portainer, the web interface does not allow the `.yml` file to have two `<<` tags in the same level. Therefore replacing two of them as one in brackets solves the issue. This configuration works both with the Portainer web interface and the docker-compose cli without any problems. Know more about Portainer at https://www.portainer.io/
OpenProject installation with Docker Compose
Install
Clone this repository:
git clone https://github.com/opf/openproject-deploy --depth=1 --branch=stable/12 openproject
Go to the compose folder:
cd openproject/compose
Make sure you are using the latest version of the Docker images:
docker-compose pull
Launch the containers:
docker-compose up -d
After a while, OpenProject should be up and running on http://localhost:8080.
Configuration
If you want to specify a different port, you can do so with:
PORT=4000 docker-compose up -d
If you want to specify a custom tag for the OpenProject docker image, you can do so with:
TAG=my-docker-tag docker-compose up -d
You can also set those variables into an .env file in your current working
directory, and Docker Compose will pick it up automatically. See .env.example
for details.
Upgrade
Go to the compose folder:
cd openproject/compose
Retrieve any changes from the openproject-deploy repository:
git pull origin stable/12
Make sure you are using the latest version of the Docker images:
docker-compose pull
Relaunch the containers:
docker-compose up -d
Uninstall
You can remove the stack with:
docker-compose down
Troubleshooting
You can look at the logs with:
docker-compose logs -n 1000
For the complete documentation, please refer to https://docs.openproject.org/installation-and-operations/.