Skip to content

Commit 8abb509

Browse files
committed
fixing issue with docker container
1 parent b288f6d commit 8abb509

File tree

6 files changed

+4452
-28
lines changed

6 files changed

+4452
-28
lines changed

.env.example

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1 @@
1-
DATABASE_HOST = "localhost"
2-
DATABASE_NAME = "mydatabase"
3-
DATABASE_PORT = "5432"
4-
DATABASE_USERNAME = "myuser"
5-
DATABASE_PASSWORD = "mypassword"
6-
DATABASE_URL = "postgresql://USERNAME:PASSWORD@HOST:PORT/NAME?schema=public"
1+
DATABASE_URL="postgresql://postgres:example@localhost:5432/postgres"

README.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ We welcome contributions from the community! If you'd like to contribute to Code
2929

3030
Please ensure that your code adheres to the project's coding standards and conventions.
3131

32-
3332
## Getting Started
3433

3534
### Prerequisites
@@ -52,7 +51,7 @@ To get started with Code Racer locally, follow these steps
5251

5352
3. Install NPM packages
5453
```sh
55-
npm install
54+
npm i
5655
```
5756
4. Generate a version of Prisma Client that is tailored to the models.
5857
```js
@@ -79,7 +78,6 @@ To get started with Code Racer locally, follow these steps
7978

8079
Open your browser and visit http://localhost:3000 to see the application running.
8180

82-
8381
## License
8482

8583
The Code Racer project is licensed under the MIT License. Feel free to use, modify, and distribute the code as per the terms of the license.

docker-compose.yaml

-19
This file was deleted.

docker-compose.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: "3.9"
2+
services:
3+
bg-db:
4+
image: postgres
5+
restart: always
6+
container_name: code-racer-postgres
7+
ports:
8+
- 5432:5432
9+
environment:
10+
POSTGRES_PASSWORD: example
11+
PGDATA: /data/postgres
12+
volumes:
13+
- postgres:/data/postgres
14+
15+
volumes:
16+
postgres:

0 commit comments

Comments
 (0)