Skip to content

Commit dd96373

Browse files
authored
feat: use user-provided env for compose container creation (#52)
1 parent 46d56cb commit dd96373

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

compose.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ services:
2828
# Run database migrations before starting the apps
2929
app-migrate:
3030
build: .
31+
env_file:
32+
- .env
3133
environment:
3234
DATABASE_URL: postgres://jetkvm:jetkvm@db:5432/jetkvm
3335
depends_on:
@@ -41,6 +43,8 @@ services:
4143
app:
4244
build: .
4345
restart: unless-stopped
46+
env_file:
47+
- .env
4448
environment:
4549
PORT: 3000
4650
DATABASE_URL: postgres://jetkvm:jetkvm@db:5432/jetkvm

0 commit comments

Comments
 (0)