covas-deployment/server/templates/docker-compose-db.yml.j2

32 lines
544 B
Plaintext
Raw Normal View History

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"
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: