one more microservice migrator goose
This commit is contained in:
+8
-4
@@ -4,10 +4,6 @@ services:
|
||||
image: postgres:16
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- POSTGRES_USER=${DB_USER}
|
||||
- POSTGRES_PASSWORD=${DB_PASSWORD}
|
||||
- POSTGRES_DB=${DB_NAME}
|
||||
ports:
|
||||
- "${DB_PORT}:${DB_PORT}"
|
||||
volumes:
|
||||
@@ -28,5 +24,13 @@ services:
|
||||
- db
|
||||
command: ./bin/api.exe
|
||||
|
||||
migrator:
|
||||
build: ./migrator
|
||||
env_file:
|
||||
- .env
|
||||
ports:
|
||||
- "${MIGRATOR_PORT}:${MIGRATOR_PORT}"
|
||||
command: "goose -dir ./migratios postgres 'user=postgres dbname=postgres sslmode=disable' up"
|
||||
|
||||
volumes:
|
||||
postgres-db:
|
||||
Reference in New Issue
Block a user