Changeset - a88f36bcb365
[Not reviewed]
0 1 0
vitalyster - 8 years ago 2017-06-20 13:58:17
vitalyster@gmail.com
Drop server mode from Docker installation documentation
1 file changed with 1 insertions and 2 deletions:
0 comments (0 inline, 0 general)
documentation/installation/docker.md
Show inline comments
 
@@ -33,13 +33,12 @@ Now you have to decide where to store the configuration files for Spectrum 2. We
 

	
 
## Create configuration file
 

	
 
You can use following default configuration files as a starting place:
 

	
 
* [XMPP Frontend - gateway mode](https://github.com/hanzz/spectrum2/blob/master/spectrum/src/sample2_gateway.cfg)
 
* [XMPP Frontend - server mode](https://github.com/hanzz/spectrum2/blob/master/spectrum/src/sample.cfg)
 

	
 
Download the configuration file you chose into `/opt/spectrum2/configuration` directory you have created earlier and edit it as you want. Check the documentation and tutorials for configuration examples.
 

	
 
Note that the configuration files must have `.cfg` file extension.
 

	
 
## Create directory for Spectrum 2 data
 
@@ -49,13 +48,13 @@ You also have to create persistent directory to store various Spectrum 2 data li
 
	$ mkdir -p /opt/spectrum2/data
 

	
 
## Start Spectrum 2
 

	
 
To start Spectrum 2 on background using Docker, all you have to do is running following Docker command:
 

	
 
	$ docker run --name="spectrum2" -d -p 5222:5222 -v /opt/spectrum2/configuration:/etc/spectrum2/transports -v /opt/spectrum2/data:/var/lib/spectrum2 spectrum2/spectrum2
 
	$ docker run --name="spectrum2" -d -v /opt/spectrum2/configuration:/etc/spectrum2/transports -v /opt/spectrum2/data:/var/lib/spectrum2 spectrum2/spectrum2
 

	
 
It will start Spectrum 2 and load the configuration files from `/opt/spectrum`. It also gives the spawned container name `spectrum2`.
 

	
 
## Checking the Spectrum 2 logs
 

	
 
To check the Spectrum 2 logs, use following Docker command:
0 comments (0 inline, 0 general)