Spaces:
Runtime error
Runtime error
Commit ·
6c40c26
1
Parent(s): ab84f99
add migration service to run migration on every deployment
Browse files- docker-compose.yml +9 -0
docker-compose.yml
CHANGED
|
@@ -7,6 +7,15 @@ services:
|
|
| 7 |
- "3000:3000"
|
| 8 |
networks:
|
| 9 |
- fusion-bills
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
networks:
|
| 12 |
fusion-bills:
|
|
|
|
| 7 |
- "3000:3000"
|
| 8 |
networks:
|
| 9 |
- fusion-bills
|
| 10 |
+
|
| 11 |
+
migration:
|
| 12 |
+
image: sifars.azurecr.io/fusion-bills/api:${BUILD_BUILDNUMBER:-latest}
|
| 13 |
+
env_file:
|
| 14 |
+
- .env
|
| 15 |
+
entrypoint:
|
| 16 |
+
- yarn
|
| 17 |
+
command:
|
| 18 |
+
- "db:migrate"
|
| 19 |
|
| 20 |
networks:
|
| 21 |
fusion-bills:
|