Okiba Docker

Getting started

  • save the follwing content as docker-compose.yml
services:
#########################
   okiba:
      hostname: okiba
      image: git.shihaam.dev/dockerfiles/okiba
      volumes:
          - $PWD/backend-env:/root/okiba-org-backend/.env
          - $PWD/logs/npm:/root/.npm/_logs/
          - $PWD/logs/nginx:/var/log/nginx/
          - $PWD/data/:/root/okiba-org-backend/data
      ports:
          - 3000:80
          - 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
PGHOST = okiba-db
PGPORT = 5432
PGUSER = okiba
PGDATABASE = okiba
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%