init
This commit is contained in:
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
.env
|
||||||
|
/data/
|
||||||
|
/files/
|
||||||
51
README.md
Normal file
51
README.md
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
# redmine-ki
|
||||||
|
|
||||||
|
Lokales Redmine via Docker, vorbereitet für Plugin-/Theme-Entwicklung.
|
||||||
|
|
||||||
|
## Start
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker compose up -d
|
||||||
|
```
|
||||||
|
|
||||||
|
Erster Zugriff: http://localhost:3000 — Login `admin` / `admin`, danach Passwortwechsel.
|
||||||
|
|
||||||
|
## Stoppen
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker compose down
|
||||||
|
```
|
||||||
|
|
||||||
|
Daten bleiben in `./data/db` und `./files` persistent.
|
||||||
|
|
||||||
|
## Plugin-Entwicklung
|
||||||
|
|
||||||
|
Plugins gehören nach `./plugins/<plugin_name>/`. Nach dem Anlegen oder einem Update:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker compose exec redmine bundle exec rake redmine:plugins:migrate RAILS_ENV=production
|
||||||
|
docker compose restart redmine
|
||||||
|
```
|
||||||
|
|
||||||
|
Plugin-Gerüst im Container erzeugen:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker compose exec redmine bundle exec rails generate redmine_plugin <plugin_name>
|
||||||
|
```
|
||||||
|
|
||||||
|
## Themes
|
||||||
|
|
||||||
|
Themes gehören nach `./themes/<theme_name>/`. Aktivieren unter *Administration → Settings → Display*.
|
||||||
|
|
||||||
|
## Logs
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker compose logs -f redmine
|
||||||
|
```
|
||||||
|
|
||||||
|
## Reset (alles löschen)
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker compose down
|
||||||
|
rm -rf data files
|
||||||
|
```
|
||||||
35
docker-compose.yml
Normal file
35
docker-compose.yml
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
services:
|
||||||
|
db:
|
||||||
|
image: mariadb:11
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
MARIADB_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
|
||||||
|
MARIADB_DATABASE: redmine
|
||||||
|
MARIADB_USER: redmine
|
||||||
|
MARIADB_PASSWORD: ${DB_PASSWORD}
|
||||||
|
volumes:
|
||||||
|
- ./data/db:/var/lib/mysql
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
|
|
||||||
|
redmine:
|
||||||
|
image: redmine:5
|
||||||
|
restart: unless-stopped
|
||||||
|
depends_on:
|
||||||
|
db:
|
||||||
|
condition: service_healthy
|
||||||
|
ports:
|
||||||
|
- "3000:3000"
|
||||||
|
environment:
|
||||||
|
REDMINE_DB_MYSQL: db
|
||||||
|
REDMINE_DB_DATABASE: redmine
|
||||||
|
REDMINE_DB_USERNAME: redmine
|
||||||
|
REDMINE_DB_PASSWORD: ${DB_PASSWORD}
|
||||||
|
REDMINE_SECRET_KEY_BASE: ${REDMINE_SECRET}
|
||||||
|
volumes:
|
||||||
|
- ./files:/usr/src/redmine/files
|
||||||
|
- ./plugins:/usr/src/redmine/plugins
|
||||||
|
- ./themes:/usr/src/redmine/public/themes
|
||||||
0
plugins/.gitkeep
Normal file
0
plugins/.gitkeep
Normal file
0
themes/.gitkeep
Normal file
0
themes/.gitkeep
Normal file
Reference in New Issue
Block a user