---
# System prepended metadata

title: OpenProject
tags: [SWAE]

---

# OpenProject

* **Mount Point** (**/media**, ==已升級為 2 Cores, 4G Memory==)
![image](https://hackmd.io/_uploads/SkHviDNBa.png)


* **Clone source package**
```
cd /media
git clone https://github.com/opf/openproject-deploy --depth=1 --branch=stable/13 openproject-deploy
cd openproject-deploy/compose
docker-compose pull
```
* **Create the correspond directories** 
```
sudo -p /media/openproject/pgdata
sudo -p /media/openproject/assets
```
* **Docker run**
```!
docker run -d -p 80:8080 --name openproject \
  -e OPENPROJECT_HOST__NAME=proj.local \
  -e OPENPROJECT_SECRET_KEY_BASE=secret \
  -e OPENPROJECT_HTTPS=false \
  -v /media/openproject/pgdata:/var/openproject/pgdata \
  -v /media/openproject/assets:/var/openproject/assets \
  openproject/community:13
 ```
* **Docker start** (上述初次 docker run，下次系統重啟，openproject container 未能自動啟動，新增 restart policy?)
```
docker start openproject
```
* **Update openproject container with restart policy**
```
docker update --restart={Policy} {Container Name}

03/11/24
swae@proj:/media/openproject-deploy/compose$ docker update --restart=unless-stopped openproject

swae@proj:/media/openproject-deploy/compose$ docker inspect -f "{{ .HostConfig.RestartPolicy }}" openproject
{unless-stopped 0}
```
 
 * **Email notification** (passowrd is app password)
 ![image](https://hackmd.io/_uploads/Bkng0trrT.png)


## Troubleshooting




## Reference

* [Install OpenProject with Docker](https://www.openproject.org/docs/installation-and-operations/installation/docker/)