add condition for update or drop-create database

This commit is contained in:
2023-01-03 19:05:39 +01:00
parent e502e04372
commit f36366a319
8 changed files with 7 additions and 6 deletions

View File

@@ -30,6 +30,6 @@
when: "project_env is defined"
- name: Copy docker compose server file
copy:
template:
src: "{{ docker_compose_file }}"
dest: "{{ project_src }}/docker-compose.yml"

View File

@@ -16,7 +16,7 @@ services:
image: redis/redis-stack-server:latest
ports:
- "63791:6379"
{% if covas_liquibase == true %}
liquibase:
build:
context: ./covas-liquibase
@@ -25,6 +25,7 @@ services:
- db
command:
- "update"
{% endif %}
volumes:
app-db-data: