-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (58 loc) · 1.4 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
55
56
57
58
59
60
61
62
63
version: '3.1'
services:
nginx:
image: nginx:1.23.2
ports:
- 80:80
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
depends_on:
- redmine
redmine:
build:
context: ./redmine
dockerfile: Dockerfile-redmine
image: redmine-4.2.8
container_name: redmine-4.2.8
restart: always
volumes:
- ./redmine/plugins:/usr/src/redmine/plugins
- ./redmine/backup:/usr/src/redmine/files
environment:
REDMINE_DB_MYSQL: db
REDMINE_DB_PASSWORD: redmine
depends_on:
- db
db:
build:
context: ./mysql
dockerfile: Dockerfile-mysql
container_name: redmine-db
ports:
- 3306:3306
platform: linux/amd64
restart: always
volumes:
- ./mysql/backup:/var/backup
command: mysqld --character-set-server=utf8 --collation-server=utf8_unicode_ci
environment:
MYSQL_ROOT_PASSWORD: redmine
MYSQL_DATABASE: redmine
TZ: Asia/Tokyo
periodic-backup:
build:
context: ./periodic-backup
dockerfile: Dockerfile-dbbackup-alpine
image: alpine-for-dbbackup
container_name: alpine-for-dbbackup
platform: linux/amd64
environment:
MYSQL_CONTAINER_NAME: redmine-db
MYSQL_DATABASE: redmine
MYSQL_ROOT_PASSWORD: redmine
volumes:
- ./periodic-backup/backup:/opt/mysql/backup
command: crond -f -d 8
restart: always
depends_on:
- db