mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-12-24 19:15:04 +01:00
Added more database conditions to template
This commit is contained in:
parent
20a4e628e9
commit
d379d89ea3
@ -5,7 +5,9 @@ networks:
|
||||
backend:
|
||||
|
||||
volumes:
|
||||
{% if not ( enable_central_database | lower | bool ) %}
|
||||
database:
|
||||
{% endif %}
|
||||
data:
|
||||
|
||||
x-op-restart-policy: &restart_policy
|
||||
@ -28,7 +30,9 @@ x-op-app: &app
|
||||
IMAP_ENABLED: "${IMAP_ENABLED:-false}"
|
||||
volumes:
|
||||
- "data:/var/openproject/assets"
|
||||
{% if not ( enable_central_database | lower | bool ) %}
|
||||
- "database:/var/openproject/pgdata"
|
||||
{% endif %}
|
||||
|
||||
services:
|
||||
|
||||
@ -58,8 +62,10 @@ services:
|
||||
- frontend
|
||||
volumes:
|
||||
- "data:/var/openproject/assets"
|
||||
{% if not ( enable_central_database | lower | bool ) %}
|
||||
- "database:/var/openproject/pgdata"
|
||||
|
||||
{% endif %}
|
||||
|
||||
web:
|
||||
<<: *app
|
||||
command: "./docker/prod/web"
|
||||
|
Loading…
Reference in New Issue
Block a user