-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml.mo
59 lines (58 loc) · 1.6 KB
/
docker-compose.yml.mo
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
passenger:
build: containers/passenger
command: /sbin/my_init --enable-insecure-key
links:
- mariadb
volumes:
- {{PROJECT_NAMESPACE}}_files:/home/app/redmine/files
{{#DEVELOPMENT}}
- ./containers/passenger/redmine:/home/app/redmine
- ./containers/passenger/redmine_plugins:/home/app/redmine/plugins
{{/DEVELOPMENT}}
environment:
- VIRTUAL_HOST={{PROJECT_NGINX_PROXY_VIRTUAL_HOSTS}}
- PASSENGER_APP_ENV={{PROJECT_ENVIRONMENT}}
- SECRET_KEY_BASE={{PROJECT_PASSENGER_SECRET_KEY_BASE}}
{{#PRODUCTION}}
- LETSENCRYPT_HOST={{PROJECT_NGINX_PROXY_VIRTUAL_HOSTS}}
- LETSENCRYPT_EMAIL={{PROJECT_LETSENCRYPT_EMAIL}}
{{/PRODUCTION}}
log_driver: {{PROJECT_DOCKER_LOG_DRIVER}}
{{#PRODUCTION}}
restart: always
{{/PRODUCTION}}
redmine_cron:
build: containers/passenger
volumes_from:
- passenger
links:
- mariadb
command: /opt/cron_service
environment:
TERM: dumb
log_driver: "{{PROJECT_DOCKER_LOG_DRIVER}}"
mariadb:
image: mariadb:10.2.9
environment:
MYSQL_ROOT_PASSWORD: {{PROJECT_DB_ROOT_PASSWORD}}
MYSQL_USER: {{PROJECT_DB_USER}}
MYSQL_PASSWORD: {{PROJECT_DB_PASSWORD}}
MYSQL_DATABASE: {{PROJECT_DB_DATABASE}}
TERM: dumb
log_driver: {{PROJECT_DOCKER_LOG_DRIVER}}
{{#PRODUCTION}}
restart: always
{{/PRODUCTION}}
# Backup
backup:
build: containers/backup/.
command: "/home/duply/backup_service"
volumes:
- {{PROJECT_NAMESPACE}}_files:{{PROJECT_BACKUP_SOURCE}}/files:ro
links:
- mariadb:db
log_driver: {{PROJECT_DOCKER_LOG_DRIVER}}
{{#PRODUCTION}}
restart: always
{{/PRODUCTION}}
# vi: set tabstop=2 expandtab syntax=yaml: