-
Notifications
You must be signed in to change notification settings - Fork 179
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
94 lines (87 loc) · 3.69 KB
/
docker-compose.yml
File metadata and controls
94 lines (87 loc) · 3.69 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
services:
init-volumes:
image: busybox
user: "0"
command: >
sh -c "mkdir -p .docker/redmine-dev_data/files .docker/redmine-dev_data/sqlite
.docker/redmine-60101_data/files .docker/redmine-60101_data/sqlite
.docker/redmine-60008_data/files .docker/redmine-60008_data/sqlite
.docker/redmine-50111_data/files .docker/redmine-50111_data/sqlite &&
chmod -R 777 .docker/redmine-*_data/"
volumes:
- ./:/work
working_dir: /work
php:
build: # Info to build the Docker image
context: ./.docker # Specify where the Dockerfile is located (e.g. in the root directory of the project)
dockerfile: PHP74-Dockerfile # Specify the name of the Dockerfile
ports:
- 8111:80
depends_on:
- init-volumes
- redmine-dev
volumes:
- ./:/var/www/project/ # Location of the project for php-fpm. Note this should be the same for NGINX.*
redmine-dev:
image: redmine:6.1.1
user: "33:33"
ports:
- "3000:3000"
environment:
# Workaround: Remove secret for Rails 7.2 so it will be generated automatically
# @see https://github.com/docker-library/redmine/issues/349#issuecomment-2516634932
# REDMINE_SECRET_KEY_BASE: supersecretkey
REDMINE_PLUGINS_MIGRATE: true
volumes:
- ./.docker/redmine-dev_data/files:/usr/src/redmine/files
- ./.docker/redmine-dev_data/sqlite:/usr/src/redmine/sqlite
behat:
build: # PHP container for Behat tests (needs Redmine services)
context: ./.docker # Specify where the Dockerfile is located (e.g. in the root directory of the project)
dockerfile: Behat-Dockerfile # Specify the name of the Dockerfile
depends_on:
- init-volumes
- redmine-6-1
- redmine-6-0
- redmine-5-1
volumes:
- ./:/var/www/project/ # Location of the project for php-fpm. Note this should be the same for NGINX.*
# Make sure the following services are configured in:
# - /tests/Behat/behat.yml
redmine-6-1:
image: redmine:6.1.1
user: "33:33"
ports:
- "5061:3000"
environment:
# Workaround: Remove secret for Rails 7.2 so it will be generated automatically
# @see https://github.com/docker-library/redmine/issues/349#issuecomment-2516634932
# REDMINE_SECRET_KEY_BASE: supersecretkey
REDMINE_PLUGINS_MIGRATE: true
volumes:
- ./.docker/redmine-60101_data/files:/usr/src/redmine/files
- ./.docker/redmine-60101_data/sqlite:/usr/src/redmine/sqlite
redmine-6-0:
image: redmine:6.0.8
user: "33:33"
ports:
- "5060:3000"
environment:
# Workaround: Remove secret for Rails 7.2 so it will be generated automatically
# @see https://github.com/docker-library/redmine/issues/349#issuecomment-2516634932
# REDMINE_SECRET_KEY_BASE: supersecretkey
REDMINE_PLUGINS_MIGRATE: true
volumes:
- ./.docker/redmine-60008_data/files:/usr/src/redmine/files
- ./.docker/redmine-60008_data/sqlite:/usr/src/redmine/sqlite
redmine-5-1:
image: redmine:5.1.11
user: "33:33"
ports:
- "5051:3000"
environment:
REDMINE_SECRET_KEY_BASE: supersecretkey
REDMINE_PLUGINS_MIGRATE: true
volumes:
- ./.docker/redmine-50111_data/files:/usr/src/redmine/files
- ./.docker/redmine-50111_data/sqlite:/usr/src/redmine/sqlite