forked from guss77/redmine-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (56 loc) · 1.46 KB
/
docker-compose.yml
File metadata and controls
62 lines (56 loc) · 1.46 KB
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
55
56
57
58
59
60
61
62
version: '2'
services:
#nginx-proxy:
# image: jwilder/nginx-proxy
# ports:
# - "81:80"
# environment:
# ENABLE_IPV6: "true"
# DEFAULT_HOST: redmine
# volumes:
# - /var/run/docker.sock:/tmp/docker.sock:ro
# - ./proxy.conf:/etc/nginx/proxy.conf:ro
redmine:
image: redmine:4
ports:
- 80:3000
environment:
REDMINE_DB_MYSQL: database
REDMINE_DB_PASSWORD: secret
VIRTUAL_HOST: redmine
volumes:
- plugins:/usr/src/redmine/plugins
- /efs/redmine/files:/usr/src/redmine/files
- ./wait-for-plugins.sh:/wait-for-plugins:ro
- ./configuration.yml:/usr/src/redmine/config/configuration.yml
- /var/log/redmine/:/usr/src/redmine/log/
- ./hack-plugin-loader.patch:/hack-plugin-loader.patch
extra_hosts:
- "smtpserver:${SMTP_SERVER}"
entrypoint: /wait-for-plugins
command: ["rails", "server", "-b", "0.0.0.0"]
depends_on:
- database
restart: always
mem_limit: 800mb
database:
image: mariadb
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: redmine
volumes:
- /efs/redmine/database:/var/lib/mysql
restart: always
tool:
build: .
volumes:
- plugins:/redmine/plugins
- /efs/redmine/files:/redmine/files
- /etc/redmine:/etc/redmine-compose
- ./install-plugins.sh:/install-plugins:ro
command: /install-plugins
restart: on-failure
volumes:
data-volume:
files:
plugins: