Last active
September 21, 2024 04:29
-
-
Save cemtopkaya/3976af906e8885d6361312f93f622f78 to your computer and use it in GitHub Desktop.
Redmine ayaklandıran docker-compose.yaml
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
# mkdir -p volume/{redmine/redmine-config,mysql} | |
# touch ./volume/redmine/redmine-config/{secrets.yml,configuration.yml,database.yml,additional_environment.rb} ./volume/mysql/mysqld.cnf | |
version: "3.1" | |
networks: | |
redmine-test: | |
name: redmine-test | |
driver: bridge | |
ipam: | |
config: | |
- subnet: 10.0.5.0/24 | |
gateway: 10.0.5.1 | |
services: | |
redmine: | |
container_name: test-redmine-web | |
build: | |
dockerfile: Dockerfile | |
context: ./Dockerfiles/redmine | |
pull_policy: if_not_present | |
image: redmine:5.0.2-custom | |
restart: always | |
# entrypoint: "tail -f /dev/null && ./docker-entrypoint.sh rails server -b 0.0.0.0" | |
networks: | |
redmine-test: | |
ports: | |
- 3000:3000 | |
environment: | |
REDMINE_DB_MYSQL: db | |
REDMINE_DB_USERNAME: root | |
REDMINE_DB_PASSWORD: admin | |
REDMINE_DB_DATABASE: redmine | |
REDMINE_SECRET_KEY_BASE: admin | |
volumes: | |
# Burada eklenti dizini oluşturulacak | |
- ./volume/redmine/plugins:/usr/src/redmine/plugins | |
# Redmine ayarları bu dosyalarda olacak | |
- ./volume/redmine/redmine-config/secrets.yml:/usr/src/redmine/config/secrets.yml | |
- ./volume/redmine/redmine-config/configuration.yml:/usr/src/redmine/config/configuration.yml | |
- ./volume/redmine/redmine-config/database.yml:/usr/src/redmine/config/database.yml | |
- ./volume/redmine/redmine-config/additional_environment.rb:/usr/src/redmine/config/additional_environment.rb | |
depends_on: | |
db: | |
condition: service_healthy | |
db: | |
container_name: test-redmine_mysql | |
image: mysql:5.7 | |
restart: always | |
networks: | |
redmine-test: | |
environment: | |
MYSQL_ROOT_PASSWORD: admin | |
MYSQL_DATABASE: redmine | |
MYSQL_USER: admin | |
healthcheck: | |
test: ["CMD-SHELL", "mysqladmin ping -h localhost -u root -padmin"] | |
ports: | |
- 3306:3306 | |
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