Skip to content

Commit

Permalink
Made postfix and adminer services optional on compse files
Browse files Browse the repository at this point in the history
  • Loading branch information
juanluisbaptiste committed Apr 2, 2021
1 parent 728444e commit e83529f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
26 changes: 12 additions & 14 deletions docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,15 @@ services:
mariadb:
image: juanluisbaptiste/otrs-mariadb:dev
build: mariadb
adminer:
image: adminer:standalone
read_only: true
volumes:
- /tmp
ports:
- "8080:8080"
# networks:
# - internal
# - proxy
depends_on:
- mariadb
links:
- mariadb
# If you need access to the database, uncomment this service
# adminer:
# image: adminer:standalone
# read_only: true
# volumes:
# - /tmp
# ports:
# - "8080:8080"
# depends_on:
# - mariadb
# links:
# - mariadb
22 changes: 12 additions & 10 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ services:
# - "80"
depends_on:
- mariadb
- postfix
# Uncomment if using the smtp relay
# - postfix
env_file: .env
volumes:
- './volumes/config:/opt/otrs/Kernel'
Expand All @@ -28,12 +29,13 @@ services:
- "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
- ./volumes/mysql:/var/lib/mysql
- /etc/localtime:/etc/localtime:ro
# If you need a SMTP relay you can use this service
# postfix:
# image: juanluisbaptiste/postfix:latest
# expose:
# - '25'
# # See juanluisbaptiste/postfix github page for the contents
# # and an explanation of credentials-smtp.
# env_file: .env

0 comments on commit e83529f

Please sign in to comment.