Skip to content
This repository has been archived by the owner on Nov 21, 2019. It is now read-only.

Commit

Permalink
Run migration from app directly
Browse files Browse the repository at this point in the history
  • Loading branch information
thewilkybarkid committed May 1, 2019
1 parent 3d9b56f commit a74250b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ services:
db:
image: postgres:11.2-alpine
app:
&app
build:
context: .
target: prod
Expand All @@ -13,16 +12,15 @@ services:
DEFAULT_LOCALE:
SERVICE_NAME:
DATABASE_URL: pgsql://postgres:@db:5432/postgres
image: libero/content-store:${IMAGE_TAG:-master}
depends_on:
- db
db-schema:
<<: *app
command: >
sh -c '
while ! nc db 5432; do sleep 1; done
bin/console doctrine:migrations:migrate --no-interaction
php-fpm
'
image: libero/content-store:${IMAGE_TAG:-master}
depends_on:
- db
web:
image: nginx:1.15.8-alpine
volumes:
Expand Down

0 comments on commit a74250b

Please sign in to comment.