54 lines
1.4 KiB
Markdown
54 lines
1.4 KiB
Markdown

|
|
|
|
# CORXN - The Core Foundation of Novaconium
|
|
|
|
Links: [Dockerhub](https://hub.docker.com/r/4lights/corxn), [Git Repo](https://git.4lt.ca/4lt/CORXN)
|
|
|
|
CORXN (core-ex-en) is a lightweight yet powerful Docker-based environment designed as the core foundation for the [Novaconium PHP Framework](https://git.4lt.ca/4lt/novaconium).
|
|
It provides a streamlined stack featuring Apache, the latest PHP version, Redis, and MariaDB, optimized for high performance.
|
|
|
|
## Features
|
|
|
|
- **PHP Version**: 8.5.3
|
|
- **Apache Web Server**: Configured to run PHP applications
|
|
- **Support for**:
|
|
- `remoteip` (reverse proxy)
|
|
- `redis`
|
|
- `mariadb`
|
|
- **Timezone**: Default set to Vancouver (`America/Vancouver`)
|
|
|
|
## Getting Started
|
|
|
|
Follow these steps to set up the PHP container on your local environment.
|
|
|
|
### Usage
|
|
|
|
#### Clone the Repository
|
|
|
|
```bash
|
|
git clone https://git.4lt.ca/4lt/corxn.git
|
|
cd corxn
|
|
```
|
|
## How to update image on dockerhub
|
|
|
|
```bash
|
|
sudo su
|
|
docker buildx build --no-cache -t 4lights/corxn:8.5.3 -t 4lights/corxn:latest --load .
|
|
docker login -u <username>
|
|
docker push 4lights/corxn:8.5.3
|
|
docker push 4lights/corxn:latest
|
|
```
|
|
# Testing
|
|
|
|
Here is how to text the build:
|
|
```bash
|
|
mkdir -p data/uploads && sudo chown -R 33:33 data/uploads && chmod 775 data/uploads
|
|
docker compose up -d
|
|
# Visit: http://localhost:8000/test.php
|
|
# Test: file upload and that green checkmarks exist
|
|
```
|
|
|
|
# Logs
|
|
|
|
```docker logs corxn```
|