Skip to content

Commit 671c056

Browse files
committed
Updated env and yml
1 parent e40a12b commit 671c056

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

docker-compose.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@ services:
88
POSTGRES_USER: "${POSTGRES_USER}"
99
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
1010
POSTGRES_DB: ${POSTGRES_DB}
11+
command: bash -c "npm run preview"
1112
volumes:
1213
- ./docker_test_db:/var/lib/postgresql/data
1314
healthcheck:
14-
test: ["CMD-SHELL", "sh -c 'pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}'"]
15-
interval: 5s
16-
timeout: 60s
17-
retries: 5
18-
start_period: 80s
15+
test: ["CMD-SHELL", "sh -c 'pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}'"]
16+
interval: 5s
17+
timeout: 60s
18+
retries: 5
19+
start_period: 80s
1920
server:
2021
container_name: server
2122
build:
@@ -29,7 +30,7 @@ services:
2930
PORT: "${PORT}"
3031
depends_on:
3132
postgres:
32-
condition: service_healthy
33+
condition: service_healthy
3334
client:
3435
container_name: client
3536
build:

server/.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
PORT=
2+
DATABASE_URL=

0 commit comments

Comments
 (0)