Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alapierre authored Oct 14, 2020
1 parent a9be18e commit 65b8890
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,40 @@ Total: 0 (UNKNOWN: 0, LOW: 0, MEDIUM: 0, HIGH: 0, CRITICAL: 0)
## Licence

This project is licenced on Apache 2.0, same as Flyway Community Edition - Apache 2.0. wait-for.sh in on MIT Licence.


## Use in docker compose

```
version: '3'
services:
flyway:
image: lapierre/flyway
entrypoint: ["wait-for.sh", "db:5432", "--", "flyway", "migrate"]
volumes:
- ./sql:/flyway/sql
environment:
- FLYWAY_URL=jdbc:postgresql://db:5432/sample
- FLYWAY_USER=db_user
- FLYWAY_PASSWORD=db_user_pass
- FLYWAY_SCHEMAS=public
- FLYWAY_LOCATIONS=filesystem:./sql
depends_on:
- db
db:
image: postgres:12
volumes:
- pg_data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=123ewqasd
- POSTGRES_USER=db_user_pass
- POSTGRES_DB=sample
ports:
- "5432:5432"
volumes:
pg_data:
```

0 comments on commit 65b8890

Please sign in to comment.