version: "3.3" services: db: image: postgres volumes: - app-db-data:/var/lib/postgresql/data/pgdata env_file: - .env environment: - PGDATA=/var/lib/postgresql/data/pgdata ports: - "54321:5432" mongo: image: mongo env_file: - .env ports: - "28017:27017" redis: image: redis/redis-stack-server:latest ports: - "63791:6379" {% if covas_liquibase == true %} liquibase: build: context: ./covas-liquibase dockerfile: Dockerfile depends_on: - db command: - "update" {% endif %} volumes: app-db-data: