Skip to content

Commit 233c5c8

Browse files
committed
fix: added .env.local to use in dev mode and fixed docker compose dev yml
1 parent 780664f commit 233c5c8

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

.env.local

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
TZ=America/Sao_Paulo
2+
3+
DB_HOST=sos-rs-db
4+
DB_PORT=5432
5+
DB_DATABASE_NAME=sos_rs
6+
DB_USER=root
7+
DB_PASSWORD=root
8+
DATABASE_URL="postgresql://${DB_USER}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_DATABASE_NAME}?schema=public"
9+
SECRET_KEY=batata
10+
11+
HOST=::0.0.0.0
12+
PORT=4000

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ lerna-debug.log*
4343
.env.development.local
4444
.env.test.local
4545
.env.production.local
46-
.env.local
46+
# .env.local
4747

4848
# temp directory
4949
.temp

docker-compose.dev.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ services:
99
depends_on:
1010
- db
1111
ports:
12-
- "4000:4000"
12+
- '4000:4000'
1313
volumes:
1414
- .:/usr/app
15-
working_dir: "/usr/app"
15+
- /usr/app/node_modules
16+
working_dir: '/usr/app'
1617
environment:
1718
- DB_HOST=sos-rs-db
1819
- DB_PORT=5432
@@ -23,10 +24,10 @@ services:
2324
sh -c "npm install &&
2425
npx prisma generate &&
2526
npx prisma migrate dev &&
26-
npm run start:dev"
27+
npm run start"
2728
db:
2829
container_name: sos-rs-db
2930
image: postgres
3031
environment:
3132
- POSTGRES_PASSWORD=root
32-
- POSTGRES_USER=root
33+
- POSTGRES_USER=root

0 commit comments

Comments
 (0)