]> jfr.im git - irc/UndernetIRC/undernet-development-env.git/blame - README.md
Updated README with service information
[irc/UndernetIRC/undernet-development-env.git] / README.md
CommitLineData
41114acc
SW
1UnderNET Development Environment
2================================
3
4This repository contain a docker based development environment for UnderNET.
5
6It includes the following services:
7
8- hub (ircu2)
9- leaf server (ircu2)
10- PostgreSQL database
11- mail server (mailhog)
12- cservice web portal
46d402b4 13- GNUworld (enabled modules: cservice, ccontrol, openchanfix, dronescan)
41114acc
SW
14
15
16# Requirements to setup the environment
17
46d402b4
SW
18- [Docker](https://www.docker.com/)
19- [docker-compose](https://docs.docker.com/compose/)
20
41114acc 21
15e64a5b
SW
22# Getting started
23
24This project uses git submodules. After cloning this repository the submodules needs to be
25initialized and updated. Follow this step-by-step guide to get your new UnderNET environment
26up and running.
27
28```
29git clone https://github.com/Ratler/undernet-development-env.git
a36b6e91 30cd undernet-development-env
15e64a5b
SW
31git submodule init
32git submodule update
46d402b4 33docker-compose up -d
15e64a5b 34```
41114acc 35
46d402b4
SW
36## Service information (hosts, ports and login information)
37
38The following ports below are mapped from your host to the container:
39
40| Service | URL / ip:port | Comments |
41|--------------|------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
42| hub | Server: localhost:4400 <br> Client: localhost:6669 | The default `/oper` username is `admin` with the password `admin` |
43| leaf | Server: localhost:4401 <br> Client: localhost:6667 | The default `/oper` username is `admin` with the password `admin` |
44| db | localhost:5432 | The default db username is `cservice` with the password `cservice`, works for all the databases. <br> Databases: `cservice`, `ccontrol`, `chanfix`, `dronescan`, `local_db` |
45 | mail | SMTP: localhost:1025 <br> WEB: http://localhost:8025 | Captures e-mails from cservice-web, <br>e-mails can be accessed from the WEB url. |
46 | cservice-web | http://localhost:8080 | Default admin (level 1000) user is `Admin` with the password `temPass2020@` |
47
48
49# Configuration
50
51The configuration for the `hub`, `leaf` and `gnuworld` can be changed in the folder `etc/`.
52All the files are mounted inside the container as volumes, so any change done on your host
53is reflected in the container immediately. For example after changing `etc/hub.conf`, just
54`/rehash` the IRC server to apply the changes.
55
56For the service `cservice-web` the configuration can be changed from `cservice-web/php_includes`. Any configuration
57or change in an of the PHP files will be applied immediately.
58
59# Making code changes in ircu or gnuworld
60
61After making any code change in either ircu or gnuworld the container need to be rebuilt and restarted.
62
63Rebuild ircu (hub and leaf share the same image):
64```
65docker-compose build hub
66docker-compose restart hub
67docker-compose restart leaf
68```
69
70Rebuild and restart gnuworld:
71```
72docker-compose build gnuworld
73docker-compose restart gnuworld
74```
75
76
41114acc
SW
77# FAQ
78Q: Why do I see this message _"X (cservice@undernet.org): AUTHENTICATION FAILED as <user>
79 (Unable to login during reconnection, please try again in 295 seconds)"_ when trying to
80 authenticate with `x@channels.undernet.org`?
81
82A: This is a burst connection mechanism in GNUworld which happen when it links to its hub.
83 Just wait for it to complete and try again.