Skip to content

hxdimpf/oc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OC — OpenCaching Development Environment

Docker Compose stack: OC3 (legacy PHP), OC4 (Symfony), OC5 (Node.js), OKAPI (shared API), and MariaDB. Routed through Nginx Proxy Manager.

Quick Start

# Clone everything
git clone git@github.com:hxdimpf/OC.git
git clone git@github.com:hxdimpf/OC3.git ../oc3
git clone git@github.com:hxdimpf/OC4.git ../oc4
git clone git@github.com:hxdimpf/OC5.git ../oc5
git clone -b oc4-combined git@github.com:hxdimpf/okapi.git ../okapi
cd OC

# Start infrastructure (NPM + Dockge)
cp .env.dist .env
# Edit .env with real passwords
docker compose -f docker-compose.infra.yml up -d

# Start apps
docker compose up -d

Architecture

nginx-proxy-manager :80 :443 :81 (admin)
    ├── oc3.baiti.net   →  oc3:80
    ├── oc4.baiti.net   →  oc4:80
    ├── oc5.baiti.net   →  oc5:3000
    └── okapi.baiti.net →  okapi:80

dockge :5001 (stacks dashboard)

Services

Service Stack Exposed Port
OC3 PHP 8.2, Smarty 80 (internal)
OC4 PHP 8.4, Symfony 7.x 80 (internal)
OC5 Node 22, Express 3000 (internal)
OKAPI PHP 8.2 80 (internal)
MariaDB 10.11 none
NPM nginx proxy 80, 443, 81
Dockge compose GUI 5001

Routing

Routes are configured in the Nginx Proxy Manager GUI at http://:81. Point each domain to its service:

  • oc3.baiti.nethttp://oc3:80
  • oc4.baiti.nethttp://oc4:80
  • oc5.baiti.nethttp://oc5:3000
  • okapi.baiti.nethttp://okapi:80

Daily workflow

cd /var/www/oc/OC
docker compose pull       # latest images
git pull && cd ../oc3 && git pull && cd ../oc4 && git pull && cd ../oc5 && git pull && cd ../okapi && git pull && cd ../OC
docker compose up -d --build

Source repos are mounted as volumes — no rebuild needed for code changes, only docker compose restart <service>.

About

OpenCaching development environment — Docker Compose stack with OC3 (legacy), OC4 (Symfony), and shared MariaDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors