Changeset - 70e279d1252e
[Not reviewed]
0 1 0
vitalyster - 8 years ago 2017-06-23 23:24:59
vitalyster@gmail.com
Update docker.md
1 file changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
documentation/installation/docker.md
Show inline comments
 
@@ -46,24 +46,28 @@ Note that the configuration files must have `.cfg` file extension.
 
You also have to create persistent directory to store various Spectrum 2 data like SQLite3 database and so on:
 

	
 
	$ 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 -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`.
 

	
 
### Note
 

	
 
If you are using Docker bridge networking, you should configure your XMPP server to listen on the bridge IP address. Some XMPP servers are listening only 127.0.0.1 by default. Check [Prosody](https://prosody.im/doc/components) documentation for example config.  
 

	
 
## Checking the Spectrum 2 logs
 

	
 
To check the Spectrum 2 logs, use following Docker command:
 

	
 
	$ docker logs spectrum2
 

	
 
## Stopping the Spectrum 2
 

	
 
To stop the Spectrum 2 container, use following Docker command:
 

	
 
	$ docker stop spectrum2
 

	
0 comments (0 inline, 0 general)