Skip to content

Commit

Permalink
Update compose for new migrate image
Browse files Browse the repository at this point in the history
  • Loading branch information
Teddy-1000 committed Oct 2, 2024
1 parent 656ea3f commit a737ccd
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,12 @@ services:
start_period: 30s # Failures in 30 seconds do not mark container as unhealthy

migrate:
image: migrate/migrate:4
volumes:
- ./datastore/migrate/data/migrations:/data/migrations
command:
[
"-path",
"/data/migrations",
"-database",
"postgres://postgres:mysecretpassword@db:5432/data?sslmode=disable",
"up",
]
build:
context: datastore/migrate
environment:
- DB_USER=postgres
- DB_PASS=mysecretpassword
- DB_URL=db
depends_on:
db:
condition: service_healthy
Expand Down

0 comments on commit a737ccd

Please sign in to comment.