forked from juanluisbaptiste/docker-otrs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-prod.yml
41 lines (40 loc) · 1.26 KB
/
docker-compose-prod.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
version: '3'
services:
otrs:
image: juanluisbaptiste/otrs:latest
ports:
- "80:80"
# If running behind a proxy container, expose the ports instead
# and link the proxy container to this one.
# expose:
# - "80"
links:
- mariadb:mariadb
- postfix:postfix
# You should use env_file: instead of environment: for your environment
# variables. Look at the README.md file for a list of available variables.
env_file: .env
volumes:
- './volumes/config:/opt/otrs/Kernel'
# Uncomment if using OTRS_ARTICLE_STORAGE_TYPE=ArticleStorageFS
#- ./volumes/article:/opt/otrs/var/article
- './volumes/skins:/opt/otrs/var/httpd/htdocs/skins/'
- './volumes/backup:/var/otrs/backups'
- './volumes/addons:/opt/otrs/addons'
- './volumes/db_upgrade:/opt/otrs/db_upgrade'
- '/etc/localtime:/etc/localtime:ro'
mariadb:
image: juanluisbaptiste/otrs-mariadb:latest
expose:
- "3306"
env_file: .env
volumes:
- './volumes/mysql:/var/lib/mysql'
- '/etc/localtime:/etc/localtime:ro'
postfix:
image: juanluisbaptiste/postfix:latest
expose:
- "25"
# See juanluisbaptiste/postfix github page for the contents
# and an explanation of credentials-smtp.
env_file: .env