Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 671c056

Browse files
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)

AltStyle によって変換されたページ (->オリジナル) /