Add Redmine service

This commit is contained in:
2025-12-22 15:39:39 +01:00
parent 5c07bbf1ab
commit 9711945682
4 changed files with 39 additions and 3 deletions

View File

@@ -5,11 +5,14 @@ networks:
nextcloud-backend:
gitea-frontend:
gitea-backend:
redmine-frontend:
redmine-backend:
volumes:
db:
nextcloud:
gitea:
redmine:
services:
proxy:
@@ -18,6 +21,7 @@ services:
networks:
- nextcloud-frontend
- gitea-frontend
- redmine-frontend
ports:
- "80:80"
- "443:443"
@@ -26,6 +30,7 @@ services:
depends_on:
- nextcloud
- gitea
- redmine
db:
build:
@@ -35,6 +40,7 @@ services:
networks:
- nextcloud-backend
- gitea-backend
- redmine-backend
volumes:
- db:/var/lib/mysql
@@ -77,3 +83,18 @@ services:
- "222:22"
depends_on:
- db
redmine:
image: redmine:6-alpine
environment:
- REDMINE_DB_MYSQL=db
- REDMINE_DB_USERNAME=redmine
- REDMINE_DB_PASSWORD=password
restart: always
networks:
- redmine-frontend
- redmine-backend
volumes:
- redmine:/usr/src/redmine/files
depends_on:
- db

View File

@@ -3,6 +3,7 @@
This project is a personal cloud of services:
- [NextCloud](https://nextcloud.com/)
- [Gitea](https://about.gitea.com/products/gitea/)
- [Redmine](https://www.redmine.org/)
# Setup
@@ -11,7 +12,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 \
gitea.$host nextcloud.$host redmine.$host \
$host 127.0.0.1 ::1
```
@@ -20,7 +21,7 @@ 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 gitea.yourdomain.com -d nextcloud.yourdomain.com -d redmine.yourdomain.com
```
2. Configure the host name.

View File

@@ -6,4 +6,6 @@ CREATE USER 'gitea'@'%' IDENTIFIED BY 'password';
CREATE DATABASE gitea CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
GRANT ALL PRIVILEGES ON gitea.* TO 'gitea'@'%';
FLUSH PRIVILEGES;
CREATE USER 'redmine'@'%' IDENTIFIED BY 'password';
CREATE DATABASE redmine;
GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'%';

View File

@@ -38,6 +38,18 @@ server {
}
}
server {
listen 443 ssl;
server_name redmine.yourdomain.com;
ssl_certificate /etc/ssl/crt/server.crt;
ssl_certificate_key /etc/ssl/crt/server.key;
location / {
proxy_pass http://redmine:3000;
}
}
# https://github.com/nextcloud/docker/blob/master/.examples/docker-compose/with-nginx-proxy/mariadb/fpm/web/nginx.conf
server {
listen 443 ssl;