readme update
This commit is contained in:
parent
d8aeea64ff
commit
2ec443939f
20
README.md
20
README.md
@ -1,6 +1,8 @@
|
||||
## Okiba Docker
|
||||
|
||||
|
||||
# Getting started
|
||||
- save the follwing content as `docker-compose.yml`
|
||||
```yml
|
||||
services:
|
||||
#########################
|
||||
@ -8,11 +10,13 @@ services:
|
||||
hostname: okiba
|
||||
image: git.shihaam.dev/dockerfiles/okiba-org-docker
|
||||
volumes:
|
||||
- $PWD/backend-env:/root/okiba-org-backend/.env
|
||||
- $PWD/frontend-env:/root/okiba-org-frontend/.env.local
|
||||
- $PWD/logs/npm:/root/.npm/_logs/
|
||||
- $PWD/data/:/root/okiba-org-backend/data
|
||||
- $PWD/.env:/root/okiba-org-backend/.env
|
||||
ports:
|
||||
- 3000:3000
|
||||
- 8080:8080
|
||||
restart: always
|
||||
#########################
|
||||
postgres:
|
||||
@ -27,3 +31,17 @@ services:
|
||||
restart: unless-stopped
|
||||
|
||||
```
|
||||
- Make a new file called `backend-env` and configure it for backend process, here is a sample file:
|
||||
```env
|
||||
PORT = 8080
|
||||
PGUSER = okiba
|
||||
PGHOST = okiba
|
||||
PGDATABASE = okiba
|
||||
PGPORT = 5432
|
||||
PGPASSWORD = okiba
|
||||
```
|
||||
- Make a new file called `frontend-env` and configure it for frontend process, here is a sample file:
|
||||
```env
|
||||
VITE_SERVER_URL=http://localhost:8080
|
||||
```
|
||||
- Run `docker compose up`
|
||||
|
Loading…
x
Reference in New Issue
Block a user