https://github.com/mrclay/elgg-docker-2
docker-compose project for testing Elgg 4
https://github.com/mrclay/elgg-docker-2
docker docker-compose elgg
Last synced: about 2 months ago
JSON representation
docker-compose project for testing Elgg 4
- Host: GitHub
- URL: https://github.com/mrclay/elgg-docker-2
- Owner: mrclay
- License: mit
- Created: 2021-05-15T23:47:47.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-12-18T05:22:31.000Z (over 1 year ago)
- Last Synced: 2025-01-24T08:24:58.120Z (over 1 year ago)
- Topics: docker, docker-compose, elgg
- Language: PHP
- Homepage:
- Size: 120 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Elgg docker compose Project
## Auto install
This installs Elgg into a new composer project so that port 8080 serves just the
contents of the `services/starter/web` directory. Composer's `vendor` is not
public.
```
./auto-install.sh
```
Open http://localhost:8080/ and log in with `admin` / `Adm1npwd`
### Manual install
```
docker compose up -d
docker compose exec starter composer install --ignore-platform-reqs
```
Browse to http://localhost:8080/install.php
### Using composer / elgg-cli
```
docker compose exec starter composer
docker compose exec starter composer show
docker compose exec starter vendor/elgg/elgg/elgg-cli
docker compose exec starter vendor/elgg/elgg/elgg-cli plugins:list
```
### Accessing elgg-data
```
# Data tree
docker compose exec -w /var/data/elgg-data starter tree
# Clear cache
docker compose exec -w /var/data/elgg-data starter rm -rf caches/*
# Browse
docker compose exec -w /var/data/elgg-data starter bash
```
## Elgg/Elgg core install
This clones the Elgg repo into `core/Elgg` and installs it so the Elgg
directory is the document root (/vendor is public, not recommended).
```
./core-install.sh
```
- http://localhost:8081/ - Elgg served by nginx
### Using composer / elgg-cli and elgg-data
```
docker compose exec -w /var/www/html/Elgg core-nginx composer show
docker compose exec core-nginx php Elgg/elgg-cli plugins:list
# Data tree
docker compose exec -w /var/data/elgg-data core-nginx tree
# Clear cache
docker compose exec -w /var/data/elgg-data core-nginx rm -rf caches/*
```
## Viewing mail sent
http://localhost:8025/