Last active
October 20, 2022 06:07
-
-
Save cemtopkaya/86d4c6da294228be85639f214a8f8e88 to your computer and use it in GitHub Desktop.
Redmine ayaklandırmak için Dockerfile ve docker-compose.yml dosyaları
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dockerfile | |
``` | |
FROM redmine:5.0.2 | |
RUN apt update && \ | |
apt install -y graphviz \ | |
vim \ | |
nano \ | |
htop \ | |
unzip \ | |
iputils-ping \ | |
net-tools | |
``` | |
docker-compose.yml | |
```yaml | |
version: '3.1' | |
services: | |
redmine: | |
build: . | |
container_name: redmine | |
pull_policy: if_not_present | |
image: redmine:5.0.2-custom | |
restart: always | |
ports: | |
- 80:3000 | |
environment: | |
REDMINE_DB_MYSQL: db | |
REDMINE_DB_USERNAME: root | |
REDMINE_DB_PASSWORD: admin | |
REDMINE_DB_DATABASE: redmine | |
REDMINE_SECRET_KEY_BASE: admin | |
volumes: | |
- ./volume/redmine/redmine-plugins:/usr/src/redmine/plugins | |
- ./volume/redmine/repos:/home/redmine/repos | |
- ./volume/redmine/redmine-themes:/usr/src/redmine/public/themes | |
- ./volume/redmine/redmine-data:/usr/src/redmine/files | |
- ./volume/redmine/redmine-config/configuration.yml:/usr/src/redmine/config/configuration.yml | |
- ./volume/redmine/java/jre-8u341-linux-x64/jre1.8.0_341:/usr/bin/java | |
- ./volume/redmine/plantuml/plantuml.sh:/usr/bin/plantuml.sh:z | |
- ./volume/redmine/plantuml/plantuml-1.2022.7.jar:/home/redmine/plantuml.jar:z | |
depends_on: | |
- db | |
db: | |
container_name: redmine_mysql | |
image: mysql:5.7 | |
restart: always | |
ports: | |
- 3306:3306 | |
environment: | |
MYSQL_ROOT_PASSWORD: admin | |
MYSQL_DATABASE: redmine | |
MYSQL_USER: admin | |
volumes: | |
- ./volume/mysql/mysql-data:/var/lib/mysql | |
- ./volume/mysql/mysqld.cnf:/etc/mysql/mysql.conf.d/mysqld.cnf | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment