forked from jigarius/toggl2redmine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (57 loc) · 1.63 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
version: '3.1'
services:
redmine:
image: redmine:4.x-toggl2redmine
container_name: t2r-4x-appserver
platform: linux/x86_64
hostname: appserver
build: .docker/redmine
ports:
- "3000:3000"
depends_on:
- mysql
- mailhog
environment:
RAILS_ENV: development
REDMINE_LANG: en
REDMINE_DB_MYSQL: mysql
REDMINE_DB_ENCODING: utf8
REDMINE_DB_USERNAME: redmine
REDMINE_DB_PASSWORD: redmine
REDMINE_PLUGINS_MIGRATE: 1
volumes:
- .:/usr/src/redmine/plugins/toggl2redmine
- ./.docker/redmine/seeds.rb:/usr/src/redmine/db/seeds.rb
- ./.docker/redmine/configuration.yml:/usr/src/redmine/config/configuration.yml
- ./.docker/redmine/database.yml:/usr/src/redmine/config/database.yml
- ./.docker/redmine/additional_environment.rb:/usr/src/redmine/config/additional_environment.rb
mysql:
image: mariadb:10.6
container_name: t2r-4x-mysql
hostname: mysql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: redmine
MYSQL_PASSWORD: redmine
command: ['mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci']
ports:
- '3306:3306'
volumes:
- ./.docker/mysql/init:/docker-entrypoint-initdb.d
node:
image: node:16.x-toggl2redmine
container_name: t2r-4x-node
platform: linux/x86_64
hostname: node
build: .docker/node
command: ['tail', '-f', '/dev/null']
volumes:
- .:/app
mailhog:
image: mailhog/mailhog:v1.0.0
container_name: t2r-4x-mailhog
platform: linux/x86_64
hostname: mailhog
ports:
- "8025:8025"
- "1025:1025"