-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
54 lines (54 loc) · 1.67 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# SCN Redmine Compose
services:
mariadb:
image: docker.io/bitnami/mariadb:11.4
container_name: mariadb
volumes:
- 'mariadb_data:/bitnami/mariadb'
environment:
# ALLOW_EMPTY_PASSWORD is recommended only for development.
- ALLOW_EMPTY_PASSWORD=yes
- MARIADB_USER=bn_redmine
- MARIADB_DATABASE=bitnami_redmine
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 20s
retries: 10
restart: on-failure:3
redmine:
build: .
container_name: redmine
ports:
- '80:3000'
volumes:
- 'redmine_data:/bitnami/redmine'
- ./redmine-plugins:/opt/bitnami/redmine/plugins
depends_on:
- mariadb
environment:
# ALLOW_EMPTY_PASSWORD is recommended only for development.
- ALLOW_EMPTY_PASSWORD=yes
- REDMINE_DATABASE_HOST=mariadb
- REDMINE_DATABASE_PORT_NUMBER=3306
- REDMINE_DATABASE_USER=bn_redmine
- REDMINE_DATABASE_NAME=bitnami_redmine
- REDMINE_SMTP_HOST=smtp-relay.gmail.com
- REDMINE_SMTP_PORT=587
- REDMINE_SMTP_PASSWORD=${REDMINE_SMTP_PASSWORD}
- REDMINE_IMAP_PASSWORD=${REDMINE_IMAP_PASSWORD}
# for plugin support
- BITNAMI_DEBUG=true
- REDMINE_DATA_TO_PERSIST=/opt/bitnami/redmine/config/configuration.yml /opt/bitnami/redmine/config/database.yml files public/plugin_assets
healthcheck:
test: curl --fail http://localhost:3000 || exit 1
interval: 60s
retries: 5
start_period: 60s
timeout: 10s
restart: on-failure:3
volumes:
mariadb_data:
driver: local
redmine_data:
driver: local