Remove OpenProject

This commit is contained in:
2025-12-22 11:41:32 +01:00
parent 865c44b285
commit 5c07bbf1ab
5 changed files with 4 additions and 148 deletions

View File

@@ -1,13 +0,0 @@
OPENPROJECT_TAG=16-slim
OPENPROJECT_HTTPS=true
OPENPROJECT_HOST__NAME=openproject.tvcloud.fr
OPENPROJECT_HSTS=true
RAILS_CACHE_STORE=memcache
OPENPROJECT_CACHE__MEMCACHE__SERVER=openproject-cache:11211
DATABASE_URL=postgres://postgres:pswd@openproject-db/openproject?pool=20&encoding=unicode&reconnect=true
RAILS_MIN_THREADS=4
RAILS_MAX_THREADS=16
# set to true to enable the email receiving feature. See ./docker/cron for more options
IMAP_ENABLED=false
OPENPROJECT=openproject
OPENPROJECT_DB=openproject-db

View File

@@ -8,9 +8,6 @@ root="${2:?$usage}"
# Configure hostname for Nginx
sed -Ei "s/(^[[:blank:]]*server_name [^_][^.]*\.)[^;]*/\1${server_name}/" "$root"/services/nginx/default.conf
# Configure hostname for OpenProject
sed -Ei "s/(^OPENPROJECT_HOST__NAME=[^.]*\.).*/\1${server_name}/" "$root"/.env
# Configure hostname for Gitea
# Note that this works only if you use a docker volume named `tvcloud_gitea` (this project default).
gitea_conf_file=/var/lib/docker/volumes/tvcloud_gitea/_data/gitea/conf/app.init

View File

@@ -3,8 +3,6 @@ name: tvcloud
networks:
nextcloud-frontend:
nextcloud-backend:
openproject-frontend:
openproject-backend:
gitea-frontend:
gitea-backend:
@@ -12,30 +10,6 @@ volumes:
db:
nextcloud:
gitea:
openproject:
openproject-db:
x-op-restart-policy: &restart_policy
restart: unless-stopped
x-op-image: &image
image: openproject/openproject:${OPENPROJECT_TAG}
x-op-app: &app
<<: [*image, *restart_policy]
environment:
OPENPROJECT_HTTPS: "${OPENPROJECT_HTTPS}"
OPENPROJECT_HOST__NAME: "${OPENPROJECT_HOST__NAME}"
OPENPROJECT_HSTS: "${OPENPROJECT_HSTS}"
RAILS_CACHE_STORE: "${RAILS_CACHE_STORE}"
OPENPROJECT_CACHE__MEMCACHE__SERVER: "${OPENPROJECT_CACHE__MEMCACHE__SERVER}"
DATABASE_URL: "${DATABASE_URL}"
RAILS_MIN_THREADS: 4
RAILS_MAX_THREADS: 16
# set to true to enable the email receiving feature. See ./docker/cron for more options
IMAP_ENABLED: "${IMAP_ENABLED}"
OPENPROJECT: "${OPENPROJECT}"
OPENPROJECT_DB: "${OPENPROJECT_DB}"
volumes:
- "${OPENPROJECT}:/var/openproject/assets"
services:
proxy:
@@ -43,7 +17,6 @@ services:
context: ./services/nginx
networks:
- nextcloud-frontend
- openproject-frontend
- gitea-frontend
ports:
- "80:80"
@@ -52,7 +25,6 @@ services:
- nextcloud:/var/www/html:ro
depends_on:
- nextcloud
- openproject
- gitea
db:
@@ -105,78 +77,3 @@ services:
- "222:22"
depends_on:
- db
# OpenProject
openproject:
<<: *app
command: "./docker/prod/web"
networks:
- openproject-frontend
- openproject-backend
depends_on:
- openproject-db
- openproject-cache
- openproject-seeder
labels:
- autoheal=true
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health_checks/default"]
interval: 10s
timeout: 3s
retries: 3
start_period: 30s
openproject-db:
image: postgres:13
<<: *restart_policy
stop_grace_period: "3s"
volumes:
- "${OPENPROJECT_DB}:/var/lib/postgresql/data"
environment:
POSTGRES_PASSWORD: pswd
POSTGRES_DB: openproject
networks:
- openproject-backend
openproject-cache:
image: memcached
<<: *restart_policy
networks:
- openproject-backend
openproject-autoheal:
image: willfarrell/autoheal:1.2.0
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
environment:
AUTOHEAL_CONTAINER_LABEL: autoheal
AUTOHEAL_START_PERIOD: 600
AUTOHEAL_INTERVAL: 30
openproject-worker:
<<: *app
command: "./docker/prod/worker"
networks:
- openproject-backend
depends_on:
- openproject-db
- openproject-cache
- openproject-seeder
openproject-cron:
<<: *app
command: "./docker/prod/cron"
networks:
- openproject-backend
depends_on:
- openproject-db
- openproject-cache
- openproject-seeder
openproject-seeder:
<<: *app
command: "./docker/prod/seeder"
restart: on-failure
networks:
- openproject-backend

View File

@@ -2,7 +2,6 @@
This project is a personal cloud of services:
- [NextCloud](https://nextcloud.com/)
- [OpenProject](https://www.openproject.org/)
- [Gitea](https://about.gitea.com/products/gitea/)
# Setup
@@ -12,7 +11,7 @@ This project is a personal cloud of services:
```
host=yourdomain.com
mkcert -cert-file services/nginx/server.crt -key-file services/nginx/server.key \
gitea.$host nextcloud.$host openproject.$host \
gitea.$host nextcloud.$host \
$host 127.0.0.1 ::1
```
@@ -21,21 +20,17 @@ Alternatively you can generate a real CA signed certificate (if your own a domai
```
sudo certbot certonly --cert-path services/nginx/server.crt --key-path services/nginx/server.key \
--manual --preferred-challenges dns --agree-tos --email admin@example.com \
-d gitea.yourdomain.com -d nextcloud.yourdomain.com -d openproject.yourdomain.com
-d gitea.yourdomain.com -d nextcloud.yourdomain.com
```
2. Make a `.env` file (for `docker compose`).
See `.example.env`.
3. Configure the host name.
2. Configure the host name.
```
host=yourdomain.com
sudo ./configure.bash $host .
```
4. Start the services.
3. Start the services.
```
sudo docker compose up --detach

View File

@@ -18,26 +18,6 @@ server {
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name openproject.yourdomain.com;
ssl_certificate /etc/ssl/crt/server.crt;
ssl_certificate_key /etc/ssl/crt/server.key;
location / {
proxy_pass_header Server;
proxy_set_header Host $host;
proxy_redirect off;
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_pass http://openproject:8080;
}
}
server {
listen 443 ssl;
server_name gitea.yourdomain.com;