forked from firefart/rt-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
78 lines (74 loc) · 1.99 KB
/
Copy pathdocker-compose.yml
File metadata and controls
78 lines (74 loc) · 1.99 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
version: "3.8"
services:
rt:
build:
context: .
image: firefart/requesttracker:latest
restart: always
deploy:
mode: replicated
replicas: 5
volumes:
- ./RT_SiteConfig.pm:/opt/rt5/etc/RT_SiteConfig.pm:ro
- ./msmtp/msmtp.conf:/etc/msmtprc:ro
- ./msmtp/:/msmtp:ro
- ./getmail/getmailrc:/getmail/getmailrc:ro
- ./gpg/:/opt/rt5/var/data/gpg
- ./smime/:/opt/rt5/var/data/smime
- ./shredder/:/opt/rt5/var/data/RT-Shredder
- /etc/localtime:/etc/localtime:ro
# make the host available inside the image
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- net
cron:
build:
context: .
image: firefart/requesttracker:latest
restart: always
# the cron daemon needs to run as root
user: root
# this will run the busybox crond
command: [ "/usr/sbin/crond", "-f", "-l", "8" ]
# no need for tini here
entrypoint: ""
depends_on:
- rt
# we send rt-mailgate over to nginx
- nginx
volumes:
- ./RT_SiteConfig.pm:/opt/rt5/etc/RT_SiteConfig.pm:ro
- ./msmtp/msmtp.conf:/etc/msmtprc:ro
- ./msmtp/:/msmtp:ro
- ./getmail/getmailrc:/getmail/getmailrc:ro
- ./gpg/:/opt/rt5/var/data/gpg
- ./smime/:/opt/rt5/var/data/smime
- ./crontab:/var/spool/cron/crontabs/rt:ro
- ./cron/:/cron
- ./shredder/:/opt/rt5/var/data/RT-Shredder
- /etc/localtime:/etc/localtime:ro
# make the host available inside the image
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- net
nginx:
build:
context: nginx
image: firefart/requesttracker:nginx-latest
ports:
- "0.0.0.0:443:443"
depends_on:
- rt
volumes:
- ./nginx/certs/:/certs/:ro
- ./nginx/startup-scripts/:/docker-entrypoint.d/:ro
- /etc/localtime:/etc/localtime:ro
networks:
- net
networks:
net:
driver: bridge
driver_opts:
com.docker.network.bridge.name: br_rt