-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
905c512
commit 83b84af
Showing
11 changed files
with
1,548 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Simple configuration | ||
|
||
Running `./start.sh` will perform some cleanup then start the containers in a simple configuration. | ||
When running, the system looks like this: | ||
|
||
``` | ||
+--------------------------+ | ||
| | | ||
| 172.60.0.10 | | ||
| +--------+ | | ||
(XMPP-C2S) 5222 -| | | | | ||
(XMPP-S2S) 5269 -|------| XMPP 1 + | | ||
(HTTP-Admin) 9090 -| | | | | ||
(BOSH) 7070 -| +----+---+ | | ||
| | | | ||
| | | | ||
| +---+--+ | | ||
| | | | | ||
(Database) 5432 -|-------| DB + | | ||
| | | | | ||
| +------+ | | ||
| 172.60.0.11 | | ||
| | | ||
+-----172.60.0.0/24--------+ | ||
``` | ||
|
||
Openfire is configured with the following XMPP domain: | ||
|
||
* `xmpp.localhost.example` | ||
|
||
Openfire is configured with the following FQDN: | ||
|
||
* `xmpp1.localhost.example` | ||
|
||
The following users are configured: | ||
|
||
* `admin` `admin` | ||
* `user1` `password` | ||
* `user2` `password` | ||
|
||
The following MUC rooms are configured: | ||
|
||
* `muc1` | ||
* `muc2` | ||
|
||
## Network | ||
|
||
The Docker compose file defines a custom bridge network with a single subnet of `172.60.0.0/24`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
version: '3.7' | ||
|
||
services: | ||
|
||
db: | ||
image: library/postgres:9.6.24-alpine | ||
ports: | ||
- "5432:5432" | ||
environment: | ||
- "POSTGRES_DB=openfire" | ||
- "POSTGRES_USER=openfire" | ||
- "POSTGRES_PASSWORD=hunter2" | ||
volumes: | ||
- ./sql:/docker-entrypoint-initdb.d | ||
networks: | ||
openfire-net: | ||
ipv4_address: 172.60.0.11 | ||
|
||
xmpp1: | ||
image: "openfire:${OPENFIRE_TAG}" | ||
ports: | ||
- "5222:5222" | ||
- "5269:5269" | ||
- "7070:7070" | ||
- "7443:7443" | ||
- "9090:9090" | ||
depends_on: | ||
- "db" | ||
volumes: | ||
- ./_data/xmpp/conf:/var/lib/openfire/conf | ||
- ./_data/plugins:/opt/plugins | ||
- ../_common/wait-for-it.sh:/wait-for-it.sh | ||
command: ["/wait-for-it.sh", "-s", "db:5432", "--", "/sbin/entrypoint.sh"] | ||
networks: | ||
openfire-net: | ||
ipv4_address: 172.60.0.10 | ||
extra_hosts: | ||
- "xmpp1.localhost.example:172.60.0.10" | ||
- "conference.xmpp1.localhost.example:172.60.0.10" | ||
|
||
dozzle: | ||
image: amir20/dozzle:latest | ||
volumes: | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
ports: | ||
- 9999:8080 | ||
|
||
networks: | ||
openfire-net: | ||
driver: bridge | ||
ipam: | ||
driver: default | ||
config: | ||
- subnet: 172.60.0.0/24 |
Binary file not shown.
Oops, something went wrong.