Liquibase Docker Environmental Variables

I have set up a docker compose with the below properties which is working fine

environment:
  LIQUIBASE_AUTO_DROP_TARGET_DB: "true"
  LIQUIBASE_COMMANDS: "update"
  LIQUIBASE_DB_DRIVER: "oracle.jdbc.driver.OracleDriver"
  LIQUIBASE_DB_SCHEMA_NAME: "test"
  LIQUIBASE_LOG_LEVEL: "info"
  LIQUIBASE_CHANGELOG_FILE: "migrations/refdata/master.xml"
  LIQUIBASE_DB_URL: jdbc:oracle:thin:@//test:1521/ermistndev
  LIQUIBASE_DB_USER: test
  LIQUIBASE_DB_PASSWD: test

I would like to rollback and i found out that i can change the LIQUIBASE_COMMANDS to rollback but it needs to specify the rollback tag. How do u specify it in environmental vars?

The error i get is the following:

[2022-06-03 13:35:04] SEVERE [liquibase.integration] Unexpected error running Liquibase: The command ‘rollback’ requires a tag name.

Hey Michey, thanks for posting this question!

Check these posts out for solutions: