Compare commits

...

3 Commits

3 changed files with 25 additions and 13 deletions

View File

@ -7,4 +7,7 @@ DOMAIN=zammad.example.com
LETS_ENCRYPT_ENV=production
SECRET_DB_PASSWORD_VERSION=v1
SECRET_DB_PASSWORD_VERSION=v1
RAILS_TRUSTED_PROXIES=['127.0.0.1', '::1', 'your-traefik_app']

View File

@ -17,6 +17,8 @@
## Quick start
if using elasticsearch, set on your host: `vm.max_map_count=262144` in `/etc/sysctl.conf` and run `sysctl -p`
* `abra app new zammad --secrets`
* `abra app config <app-name>`
* `abra app deploy <app-name>`

View File

@ -3,7 +3,7 @@ version: "3.8"
services:
zammad-backup:
image: zammad/zammad-docker-compose:zammad-postgresql-5.1.1-11
image: zammad/zammad-docker-compose:zammad-postgresql-5.2.3-19
command: ["zammad-backup"]
depends_on:
- zammad-railsserver
@ -29,14 +29,20 @@ services:
- "backupbot.backup.path=/var/tmp/zammad"
zammad-elasticsearch:
image: zammad/zammad-docker-compose:zammad-elasticsearch-5.1.1-11
image: zammad/zammad-docker-compose:zammad-elasticsearch-5.2.3-19
environment:
- discovery.type=single-node
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
deploy:
resources:
limits:
memory: 4G
reservations:
memory: 2G
zammad-init:
image: zammad/zammad-docker-compose:zammad-5.1.1-11
image: zammad/zammad-docker-compose:zammad-5.2.3-19
command: ["zammad-init"]
depends_on:
- zammad-postgresql
@ -55,15 +61,15 @@ services:
volumes:
- zammad-data:/opt/zammad
deploy:
restart_policy:
restart_policy:
condition: on-failure
zammad-memcached:
command: memcached -m 256M
image: memcached:1.6.10-alpine
image: memcached:1.6.17-alpine
app:
image: zammad/zammad-docker-compose:zammad-5.1.1-11
image: zammad/zammad-docker-compose:zammad-5.2.3-19
command: ["zammad-nginx"]
depends_on:
- zammad-railsserver
@ -74,6 +80,7 @@ services:
- default
environment:
- NGINX_SERVER_SCHEME=https
- RAILS_TRUSTED_PROXIES
deploy:
restart_policy:
condition: on-failure
@ -87,10 +94,10 @@ services:
#- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
- "coop-cloud.${STACK_NAME}.version="
- "coop-cloud.${STACK_NAME}.version=0.1.0+zammad-5.2.3-19"
zammad-postgresql:
image: zammad/zammad-docker-compose:zammad-postgresql-5.1.1-11
image: zammad/zammad-docker-compose:zammad-postgresql-5.2.3-19
environment:
- POSTGRES_USER=zammad
- POSTGRES_PASSWORD_FILE=/run/secrets/db_password
@ -100,7 +107,7 @@ services:
- postgresql-data:/var/lib/postgresql/data
zammad-railsserver:
image: zammad/zammad-docker-compose:zammad-5.1.1-11
image: zammad/zammad-docker-compose:zammad-5.2.3-19
command: ["zammad-railsserver"]
depends_on:
- zammad-memcached
@ -113,10 +120,10 @@ services:
- zammad-data:/opt/zammad
zammad-redis:
image: redis:6.2.5-alpine
image: redis:6.2.7-alpine
zammad-scheduler:
image: zammad/zammad-docker-compose:zammad-5.1.1-11
image: zammad/zammad-docker-compose:zammad-5.2.3-19
command: ["zammad-scheduler"]
depends_on:
- zammad-memcached
@ -129,7 +136,7 @@ services:
- zammad-data:/opt/zammad
zammad-websocket:
image: zammad/zammad-docker-compose:zammad-5.1.1-11
image: zammad/zammad-docker-compose:zammad-5.2.3-19
command: ["zammad-websocket"]
depends_on:
- zammad-memcached