Set restart option with .env (#87)
For better testing, the restart option of the containers is moved to .env
This commit is contained in:
parent
b78ff40329
commit
f51eb4de02
1
.env
1
.env
@ -2,3 +2,4 @@
|
|||||||
# example: VERSION=-2.1.0-13
|
# example: VERSION=-2.1.0-13
|
||||||
IMAGE_REPO=zammad/zammad-docker-compose
|
IMAGE_REPO=zammad/zammad-docker-compose
|
||||||
VERSION=
|
VERSION=
|
||||||
|
RESTART=always
|
@ -10,14 +10,14 @@ services:
|
|||||||
image: ${IMAGE_REPO}:zammad-postgresql${VERSION}
|
image: ${IMAGE_REPO}:zammad-postgresql${VERSION}
|
||||||
links:
|
links:
|
||||||
- zammad-postgresql
|
- zammad-postgresql
|
||||||
restart: always
|
restart: ${RESTART}
|
||||||
volumes:
|
volumes:
|
||||||
- zammad-backup:/var/tmp/zammad
|
- zammad-backup:/var/tmp/zammad
|
||||||
- zammad-data:/opt/zammad
|
- zammad-data:/opt/zammad
|
||||||
|
|
||||||
zammad-elasticsearch:
|
zammad-elasticsearch:
|
||||||
image: ${IMAGE_REPO}:zammad-elasticsearch${VERSION}
|
image: ${IMAGE_REPO}:zammad-elasticsearch${VERSION}
|
||||||
restart: always
|
restart: ${RESTART}
|
||||||
volumes:
|
volumes:
|
||||||
- elasticsearch-data:/usr/share/elasticsearch/data
|
- elasticsearch-data:/usr/share/elasticsearch/data
|
||||||
|
|
||||||
@ -36,7 +36,7 @@ services:
|
|||||||
zammad-memcached:
|
zammad-memcached:
|
||||||
command: ["zammad-memcached"]
|
command: ["zammad-memcached"]
|
||||||
image: ${IMAGE_REPO}:zammad-memcached${VERSION}
|
image: ${IMAGE_REPO}:zammad-memcached${VERSION}
|
||||||
restart: always
|
restart: ${RESTART}
|
||||||
|
|
||||||
zammad-nginx:
|
zammad-nginx:
|
||||||
command: ["zammad-nginx"]
|
command: ["zammad-nginx"]
|
||||||
@ -46,7 +46,7 @@ services:
|
|||||||
links:
|
links:
|
||||||
- zammad-railsserver
|
- zammad-railsserver
|
||||||
- zammad-websocket
|
- zammad-websocket
|
||||||
restart: always
|
restart: ${RESTART}
|
||||||
volumes:
|
volumes:
|
||||||
- zammad-data:/opt/zammad
|
- zammad-data:/opt/zammad
|
||||||
expose:
|
expose:
|
||||||
@ -54,7 +54,7 @@ services:
|
|||||||
|
|
||||||
zammad-postgresql:
|
zammad-postgresql:
|
||||||
image: ${IMAGE_REPO}:zammad-postgresql${VERSION}
|
image: ${IMAGE_REPO}:zammad-postgresql${VERSION}
|
||||||
restart: always
|
restart: ${RESTART}
|
||||||
volumes:
|
volumes:
|
||||||
- postgresql-data:/var/lib/postgresql/data
|
- postgresql-data:/var/lib/postgresql/data
|
||||||
|
|
||||||
@ -68,7 +68,7 @@ services:
|
|||||||
- zammad-elasticsearch
|
- zammad-elasticsearch
|
||||||
- zammad-memcached
|
- zammad-memcached
|
||||||
- zammad-postgresql
|
- zammad-postgresql
|
||||||
restart: always
|
restart: ${RESTART}
|
||||||
volumes:
|
volumes:
|
||||||
- zammad-data:/opt/zammad
|
- zammad-data:/opt/zammad
|
||||||
|
|
||||||
@ -82,7 +82,7 @@ services:
|
|||||||
- zammad-elasticsearch
|
- zammad-elasticsearch
|
||||||
- zammad-memcached
|
- zammad-memcached
|
||||||
- zammad-postgresql
|
- zammad-postgresql
|
||||||
restart: always
|
restart: ${RESTART}
|
||||||
volumes:
|
volumes:
|
||||||
- zammad-data:/opt/zammad
|
- zammad-data:/opt/zammad
|
||||||
|
|
||||||
@ -95,7 +95,7 @@ services:
|
|||||||
links:
|
links:
|
||||||
- zammad-postgresql
|
- zammad-postgresql
|
||||||
- zammad-memcached
|
- zammad-memcached
|
||||||
restart: always
|
restart: ${RESTART}
|
||||||
volumes:
|
volumes:
|
||||||
- zammad-data:/opt/zammad
|
- zammad-data:/opt/zammad
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user