2022-12-13 23:56:49 +05:00
2022-12-13 23:46:50 +05:00
2022-12-14 00:34:41 +05:00
2022-12-14 00:48:19 +05:00

Okiba Docker

Getting started

  • save the follwing content as docker-compose.yml
services:
#########################
   okiba:
      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
      ports:
          - 3000:3000
          - 8080:8080
      restart: always
#########################
   postgres:
      hostname: okiba-db
      image: postgres:13-alpine
      volumes:
          - $PWD/db:/var/lib/postgresql/data
      environment:
          - POSTGRES_DB=okiba
          - POSTGRES_USER=okiba
          - POSTGRES_PASSWORD=okiba
      restart: unless-stopped

  • Make a new file called backend-env and configure it for backend process, here is a sample file:
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:
VITE_SERVER_URL=http://localhost:8080
  • Run docker compose up
Description
docker file to start okiba-org services
Readme 47 KiB
Languages
Dockerfile 85.1%
Shell 14.9%