chore: init repository
This commit is contained in:
37
containers/docker-compose.local.yml
Normal file
37
containers/docker-compose.local.yml
Normal 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
|
||||
8
containers/docker-compose.yml
Normal file
8
containers/docker-compose.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
version: "2.1"
|
||||
|
||||
services:
|
||||
api:
|
||||
build: ../.
|
||||
ports:
|
||||
- 8080
|
||||
|
||||
Reference in New Issue
Block a user