readme update
This commit is contained in:
parent
d8aeea64ff
commit
2ec443939f
20
README.md
20
README.md
@ -1,6 +1,8 @@
|
|||||||
## Okiba Docker
|
## Okiba Docker
|
||||||
|
|
||||||
|
|
||||||
|
# Getting started
|
||||||
|
- save the follwing content as `docker-compose.yml`
|
||||||
```yml
|
```yml
|
||||||
services:
|
services:
|
||||||
#########################
|
#########################
|
||||||
@ -8,11 +10,13 @@ services:
|
|||||||
hostname: okiba
|
hostname: okiba
|
||||||
image: git.shihaam.dev/dockerfiles/okiba-org-docker
|
image: git.shihaam.dev/dockerfiles/okiba-org-docker
|
||||||
volumes:
|
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/logs/npm:/root/.npm/_logs/
|
||||||
- $PWD/data/:/root/okiba-org-backend/data
|
- $PWD/data/:/root/okiba-org-backend/data
|
||||||
- $PWD/.env:/root/okiba-org-backend/.env
|
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- 3000:3000
|
||||||
|
- 8080:8080
|
||||||
restart: always
|
restart: always
|
||||||
#########################
|
#########################
|
||||||
postgres:
|
postgres:
|
||||||
@ -27,3 +31,17 @@ services:
|
|||||||
restart: unless-stopped
|
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