Archived
Docker Compose configuration for local development with PostgreSQL 17 and MinIO (S3-compatible object storage). Includes helper scripts for start/stop, multi-database init, Liquibase migrations Dockerfile, and production Dockerfile using distroless Java 21. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
15 lines
584 B
Docker
15 lines
584 B
Docker
FROM liquibase/liquibase:4.30.0
|
|
USER root
|
|
RUN apt-get update && apt-get upgrade -y && rm -rf /var/lib/apt/lists/* \
|
|
&& rm -f /liquibase/bin/lpm \
|
|
&& chmod 755 /liquibase
|
|
USER liquibase
|
|
ADD --chmod=644 https://repo1.maven.org/maven2/org/postgresql/postgresql/42.7.2/postgresql-42.7.2.jar /liquibase/lib/postgresql.jar
|
|
COPY concilium-core/src/main/resources/db/ /liquibase/db/
|
|
ENTRYPOINT ["liquibase", \
|
|
"--changelog-file=db/liquibase/changelog.yaml", \
|
|
"--url=${LIQUIBASE_URL}", \
|
|
"--username=${LIQUIBASE_USERNAME}", \
|
|
"--password=${LIQUIBASE_PASSWORD}", \
|
|
"update"]
|