Added database migration docker
This commit is contained in:
parent
d4e394fa6b
commit
998266f929
5
Dockerfile.db
Normal file
5
Dockerfile.db
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
FROM amacneil/dbmate:v1.12.1
|
||||||
|
|
||||||
|
COPY ./db ./db
|
||||||
|
|
||||||
|
CMD ["--wait", "up"]
|
|
@ -11,7 +11,10 @@ services:
|
||||||
- 5432:5432
|
- 5432:5432
|
||||||
|
|
||||||
db-migrations:
|
db-migrations:
|
||||||
image: amacneil/dbmate:v1.12.1
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile.db
|
||||||
|
#image: amacneil/dbmate:v1.12.1
|
||||||
environment:
|
environment:
|
||||||
- DATABASE_URL=postgres://postgres:postgres@postgres:5432/auth?sslmode=disable
|
- DATABASE_URL=postgres://postgres:postgres@postgres:5432/auth?sslmode=disable
|
||||||
volumes:
|
volumes:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user