-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
54 lines (50 loc) · 1.11 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
version: '2'
services:
db:
image: sameersbn/mysql
container_name: mysql-db
restart: always
networks:
- mysql-tier
environment:
- DB_NAME=redmine_production
- DB_USER=redmine
- DB_PASS=password
volumes:
- /home/james/redmine/mysql:/var/lib/mysql
ports:
- 3306:3306
redmine:
image: jameswangcnln/redmine
container_name: redmine-app
restart: always
networks:
- mysql-tier
build:
context: .
dockerfile: Dockerfile
ports:
- 7802:80
- 8983:8983
environment:
- DB_HOST=db
- DB_PORT=3306
- DB_USER=redmine
- DB_PASS=password
- DB_NAME=redmine_production
- SMTP_PASS=
- SMTP_HOST=smtp.mxhichina.com
- SMTP_PORT=587
- SMTP_TLS=false
- SMTP_STARTTLS=false
- SMTP_AUTHENTICATION=:login
- NGINX_MAX_UPLOAD_SIZE=100M
depends_on:
- db
volumes:
- /home/james/redmine/redmine:/home/redmine/data
- /home/james/redmine/backups:/home/redmine/data/backups
networks:
mysql-tier:
driver: bridge