Compare commits
1 Commits
master
...
monotek-pa
Author | SHA1 | Date | |
---|---|---|---|
|
9e80dfbe42 |
13
.env
13
.env
@ -1,14 +1,9 @@
|
|||||||
ELASTICSEARCH_VERSION=8.8.0
|
IMAGE_REPO=zammad/zammad-docker-compose
|
||||||
IMAGE_REPO=ghcr.io/zammad/zammad
|
|
||||||
MEMCACHE_SERVERS=zammad-memcached:11211
|
MEMCACHE_SERVERS=zammad-memcached:11211
|
||||||
MEMCACHE_VERSION=1.6.20-alpine
|
POSTGRES_VERSION=15.1-alpine
|
||||||
POSTGRES_DB=zammad_production
|
|
||||||
POSTGRES_PASS=zammad
|
POSTGRES_PASS=zammad
|
||||||
POSTGRES_USER=zammad
|
POSTGRES_USER=zammad
|
||||||
POSTGRES_HOST=zammad-postgresql
|
POSTGRES_DB=zammad_production
|
||||||
POSTGRES_PORT=5432
|
|
||||||
POSTGRES_VERSION=15.3-alpine
|
|
||||||
REDIS_URL=redis://zammad-redis:6379
|
REDIS_URL=redis://zammad-redis:6379
|
||||||
REDIS_VERSION=7.0.5-alpine
|
|
||||||
RESTART=always
|
RESTART=always
|
||||||
VERSION=6.0.0-66
|
VERSION=5.4.1-29
|
||||||
|
16
.github/tests.sh
vendored
16
.github/tests.sh
vendored
@ -23,28 +23,16 @@ echo
|
|||||||
echo "Execute autowizard..."
|
echo "Execute autowizard..."
|
||||||
echo
|
echo
|
||||||
|
|
||||||
docker exec --env=AUTOWIZARD_RELATIVE_PATH=var/auto_wizard.json --env=DATABASE_URL=postgres://zammad:zammad@zammad-postgresql:5432/zammad_production zammad-docker-compose_zammad-railsserver_1 rake zammad:setup:auto_wizard
|
docker exec zammad-docker-compose_zammad-railsserver_1 rake zammad:setup:auto_wizard
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "Autowizard executed successful :)"
|
echo "Autowizard executed successful :)"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo "Check DB for AutoWizard user"
|
|
||||||
echo
|
|
||||||
|
|
||||||
docker exec --env=DATABASE_URL=postgres://zammad:zammad@zammad-postgresql:5432/zammad_production zammad-docker-compose_zammad-railsserver_1 rails r "p User.find_by(email: 'info@zammad.org')" | grep 'info@zammad.org'
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo "Check DB for AutoWizard user successfull :)"
|
|
||||||
echo
|
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "Fill DB with some random data"
|
echo "Fill DB with some random data"
|
||||||
echo
|
docker exec zammad-docker-compose_zammad-railsserver_1 rails r "FillDb.load(agents: 1,customers: 1,groups: 1,organizations: 1,overviews: 1,tickets: 1)"
|
||||||
|
|
||||||
docker exec --env=DATABASE_URL=postgres://zammad:zammad@zammad-postgresql:5432/zammad_production zammad-docker-compose_zammad-railsserver_1 rails r "FillDb.load(agents: 1,customers: 1,groups: 1,organizations: 1,overviews: 1,tickets: 1)"
|
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "DB fill successful :)"
|
echo "DB fill successful :)"
|
||||||
|
2
.github/workflows/ci-remote-image.yaml
vendored
2
.github/workflows/ci-remote-image.yaml
vendored
@ -19,7 +19,7 @@ jobs:
|
|||||||
run: docker-compose up --detach
|
run: docker-compose up --detach
|
||||||
|
|
||||||
- name: add autowizard file
|
- name: add autowizard file
|
||||||
run: docker cp .github/auto_wizard.json zammad-docker-compose_zammad-railsserver_1:/opt/zammad/var
|
run: docker cp .github/auto_wizard.json zammad-docker-compose_zammad-railsserver_1:/opt/zammad
|
||||||
|
|
||||||
- name: run tests
|
- name: run tests
|
||||||
run: .github/tests.sh
|
run: .github/tests.sh
|
||||||
|
@ -23,7 +23,7 @@ For upgrading instructions see our [Releases](https://github.com/zammad/zammad-d
|
|||||||
|
|
||||||
## Status
|
## Status
|
||||||
|
|
||||||
[![ci-remote-image](https://github.com/zammad/zammad-docker-compose/actions/workflows/ci-remote-image.yaml/badge.svg)](https://github.com/zammad/zammad-docker-compose/actions/workflows/ci-remote-image.yaml) [![Dockerhub Pulls](https://badgen.net/docker/pulls/zammad/zammad-docker-compose?icon=docker&label=pulls)](https://hub.docker.com/r/zammad/zammad-docker-compose/)
|
[![ci-remote-image](https://github.com/zammad/zammad-docker-compose/actions/workflows/ci-remote-image.yaml/badge.svg)](https://github.com/zammad/zammad-docker-compose/actions/workflows/ci-remote-image.yaml) [![Docker Pulls](https://badgen.net/docker/pulls/zammad/zammad-docker-compose?icon=docker&label=pulls)](https://hub.docker.com/r/zammad/zammad-docker-compose/)
|
||||||
|
|
||||||
## Using a reverse proxy
|
## Using a reverse proxy
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
version: '3.8'
|
version: '3'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
@ -20,11 +20,11 @@ services:
|
|||||||
restart: ${RESTART}
|
restart: ${RESTART}
|
||||||
volumes:
|
volumes:
|
||||||
- zammad-backup:/var/tmp/zammad
|
- zammad-backup:/var/tmp/zammad
|
||||||
- zammad-var:/opt/zammad/var:ro
|
- zammad-data:/opt/zammad:ro
|
||||||
- ./scripts/backup.sh:/usr/local/bin/backup.sh:ro
|
- ./scripts/backup.sh:/usr/local/bin/backup.sh:ro
|
||||||
|
|
||||||
zammad-elasticsearch:
|
zammad-elasticsearch:
|
||||||
image: bitnami/elasticsearch:${ELASTICSEARCH_VERSION}
|
image: bitnami/elasticsearch:8.5.1
|
||||||
restart: ${RESTART}
|
restart: ${RESTART}
|
||||||
volumes:
|
volumes:
|
||||||
- elasticsearch-data:/bitnami/elasticsearch/data
|
- elasticsearch-data:/bitnami/elasticsearch/data
|
||||||
@ -35,17 +35,18 @@ services:
|
|||||||
- zammad-postgresql
|
- zammad-postgresql
|
||||||
environment:
|
environment:
|
||||||
- MEMCACHE_SERVERS=${MEMCACHE_SERVERS}
|
- MEMCACHE_SERVERS=${MEMCACHE_SERVERS}
|
||||||
|
- POSTGRESQL_DB=${POSTGRES_DB}
|
||||||
|
- POSTGRESQL_USER=${POSTGRES_USER}
|
||||||
|
- POSTGRESQL_PASS=${POSTGRES_PASS}
|
||||||
- REDIS_URL=${REDIS_URL}
|
- REDIS_URL=${REDIS_URL}
|
||||||
image: ${IMAGE_REPO}:${VERSION}
|
image: ${IMAGE_REPO}:${VERSION}
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
user: 0:0
|
|
||||||
volumes:
|
volumes:
|
||||||
- zammad-config-nginx:/etc/nginx/sites-enabled
|
- zammad-data:/opt/zammad
|
||||||
- zammad-var:/opt/zammad/var
|
|
||||||
|
|
||||||
zammad-memcached:
|
zammad-memcached:
|
||||||
command: memcached -m 256M
|
command: memcached -m 256M
|
||||||
image: memcached:${MEMCACHE_VERSION}
|
image: memcached:1.6.17-alpine
|
||||||
restart: ${RESTART}
|
restart: ${RESTART}
|
||||||
|
|
||||||
zammad-nginx:
|
zammad-nginx:
|
||||||
@ -57,8 +58,7 @@ services:
|
|||||||
image: ${IMAGE_REPO}:${VERSION}
|
image: ${IMAGE_REPO}:${VERSION}
|
||||||
restart: ${RESTART}
|
restart: ${RESTART}
|
||||||
volumes:
|
volumes:
|
||||||
- zammad-config-nginx:/etc/nginx/sites-enabled:ro
|
- zammad-data:/opt/zammad
|
||||||
- zammad-var:/opt/zammad/var:ro
|
|
||||||
|
|
||||||
zammad-postgresql:
|
zammad-postgresql:
|
||||||
environment:
|
environment:
|
||||||
@ -82,13 +82,11 @@ services:
|
|||||||
image: ${IMAGE_REPO}:${VERSION}
|
image: ${IMAGE_REPO}:${VERSION}
|
||||||
restart: ${RESTART}
|
restart: ${RESTART}
|
||||||
volumes:
|
volumes:
|
||||||
- zammad-var:/opt/zammad/var
|
- zammad-data:/opt/zammad
|
||||||
|
|
||||||
zammad-redis:
|
zammad-redis:
|
||||||
image: redis:${REDIS_VERSION}
|
image: redis:7.0.5-alpine
|
||||||
restart: ${RESTART}
|
restart: ${RESTART}
|
||||||
volumes:
|
|
||||||
- redis-data:/data
|
|
||||||
|
|
||||||
zammad-scheduler:
|
zammad-scheduler:
|
||||||
command: ["zammad-scheduler"]
|
command: ["zammad-scheduler"]
|
||||||
@ -102,7 +100,7 @@ services:
|
|||||||
image: ${IMAGE_REPO}:${VERSION}
|
image: ${IMAGE_REPO}:${VERSION}
|
||||||
restart: ${RESTART}
|
restart: ${RESTART}
|
||||||
volumes:
|
volumes:
|
||||||
- zammad-var:/opt/zammad/var
|
- zammad-data:/opt/zammad
|
||||||
|
|
||||||
zammad-websocket:
|
zammad-websocket:
|
||||||
command: ["zammad-websocket"]
|
command: ["zammad-websocket"]
|
||||||
@ -116,18 +114,14 @@ services:
|
|||||||
image: ${IMAGE_REPO}:${VERSION}
|
image: ${IMAGE_REPO}:${VERSION}
|
||||||
restart: ${RESTART}
|
restart: ${RESTART}
|
||||||
volumes:
|
volumes:
|
||||||
- zammad-var:/opt/zammad/var
|
- zammad-data:/opt/zammad
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
elasticsearch-data:
|
elasticsearch-data:
|
||||||
driver: local
|
driver: local
|
||||||
postgresql-data:
|
postgresql-data:
|
||||||
driver: local
|
driver: local
|
||||||
redis-data:
|
|
||||||
driver: local
|
|
||||||
zammad-backup:
|
zammad-backup:
|
||||||
driver: local
|
driver: local
|
||||||
zammad-config-nginx:
|
zammad-data:
|
||||||
driver: local
|
|
||||||
zammad-var:
|
|
||||||
driver: local
|
driver: local
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
: "${ZAMMAD_DIR:=/opt/zammad/var}"
|
: "${ZAMMAD_DIR:=/opt/zammad}"
|
||||||
: "${BACKUP_DIR:=/var/tmp/zammad}"
|
: "${BACKUP_DIR:=/var/tmp/zammad}"
|
||||||
: "${ZAMMAD_RAILSSERVER_HOST:=zammad-railsserver}"
|
: "${ZAMMAD_RAILSSERVER_HOST:=zammad-railsserver}"
|
||||||
: "${ZAMMAD_RAILSSERVER_PORT:=3000}"
|
: "${ZAMMAD_RAILSSERVER_PORT:=3000}"
|
||||||
|
Loading…
Reference in New Issue
Block a user