mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-09 22:41:03 +01:00
Added more database conditions to template
This commit is contained in:
parent
a112b67eda
commit
4c6d57c4e0
@ -5,7 +5,9 @@ networks:
|
|||||||
backend:
|
backend:
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
|
{% if not ( enable_central_database | lower | bool ) %}
|
||||||
database:
|
database:
|
||||||
|
{% endif %}
|
||||||
data:
|
data:
|
||||||
|
|
||||||
x-op-restart-policy: &restart_policy
|
x-op-restart-policy: &restart_policy
|
||||||
@ -28,7 +30,9 @@ x-op-app: &app
|
|||||||
IMAP_ENABLED: "${IMAP_ENABLED:-false}"
|
IMAP_ENABLED: "${IMAP_ENABLED:-false}"
|
||||||
volumes:
|
volumes:
|
||||||
- "data:/var/openproject/assets"
|
- "data:/var/openproject/assets"
|
||||||
|
{% if not ( enable_central_database | lower | bool ) %}
|
||||||
- "database:/var/openproject/pgdata"
|
- "database:/var/openproject/pgdata"
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
@ -58,7 +62,9 @@ services:
|
|||||||
- frontend
|
- frontend
|
||||||
volumes:
|
volumes:
|
||||||
- "data:/var/openproject/assets"
|
- "data:/var/openproject/assets"
|
||||||
|
{% if not ( enable_central_database | lower | bool ) %}
|
||||||
- "database:/var/openproject/pgdata"
|
- "database:/var/openproject/pgdata"
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
web:
|
web:
|
||||||
<<: *app
|
<<: *app
|
||||||
|
Loading…
Reference in New Issue
Block a user