Skip to content

Commit 3772f79

Browse files
committed
Docker - updated docker-compose
1 parent 0193ee7 commit 3772f79

File tree

2 files changed

+14
-23
lines changed

2 files changed

+14
-23
lines changed

client/package-lock.json

+2-14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docker-compose.yml

+12-9
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,15 @@ services:
2424
depends_on:
2525
- postgres
2626
environment:
27-
- DB_HOST=postgres
28-
- DB_PORT=5432
29-
- DB_NAME=TEST_DB
30-
- DB_USER=postgres
31-
- DB_PASSWORD=postgres
32-
- DATABASE_URL=postgresql://postgres:postgres@postgres:5432/TEST_DB?schema=public
27+
- PORT=${PORT}
28+
- SALT=${SALT}
29+
- JWT_SECRET=${JWT_SECRET}
30+
- DB_HOST=${DB_HOST}
31+
- DB_PORT=${DB_PORT}
32+
- DB_NAME=${DB_NAME}
33+
- DB_USER=${DB_USER}
34+
- DB_PASSWORD=${DB_PASS}
35+
- DATABASE_URL=postgresql://${DB_USER}:${DB_PASS}@${DB_HOST}:${DB_PORT}/${DB_NAME}?schema=public
3336

3437
networks:
3538
- movie-app
@@ -41,9 +44,9 @@ services:
4144
ports:
4245
- 5432:5432
4346
environment:
44-
POSTGRES_USER: postgres
45-
POSTGRES_PASSWORD: postgres
46-
POSTGRES_DB: TEST_DB
47+
POSTGRES_USER: ${DB_USER}
48+
POSTGRES_PASSWORD: ${DB_PASS}
49+
POSTGRES_DB: ${DB_NAME}
4750
restart: unless-stopped
4851
networks:
4952
- movie-app

0 commit comments

Comments
 (0)