chore: init repository

This commit is contained in:
2022-10-06 15:37:28 +02:00
commit 833851f695
38 changed files with 2302 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
version: "2.1"
services:
database:
image: postgres:10-alpine
environment:
- POSTGRES_DB=john
- POSTGRES_PASSWORD=john
- POSTGRES_HOST_AUTH_METHOD=trust
ports:
- "5432"
healthcheck:
test: ["CMD-SHELL", "psql -U postgres -c 'SELECT 1;'"]
interval: 10s
timeout: 30s
retries: 3
liquibase:
image: kilna/liquibase-postgres
depends_on:
database:
condition: service_healthy
links:
- database
environment:
- LIQUIBASE_DATABASE=john
- LIQUIBASE_HOST=database
- LIQUIBASE_USERNAME=john
- LIQUIBASE_PASSWORD=john
- LIQUIBASE_CHANGELOG=/changelogs/changelog-master.xml
- LIQUIBASE_URL=jdbc:postgresql://database:5432/postgres
volumes:
- $PWD/liquibase/changelogs/:/workspace
command:
- liquibase
- --defaultsFile=/workspace/liquibase.properties
- update

View File

@@ -0,0 +1,8 @@
version: "2.1"
services:
api:
build: ../.
ports:
- 8080