Skip to content

Commit

Permalink
Add simple configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Fishbowler committed Aug 4, 2022
1 parent 905c512 commit 83b84af
Show file tree
Hide file tree
Showing 11 changed files with 1,548 additions and 0 deletions.
48 changes: 48 additions & 0 deletions simple/README.md
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`.
54 changes: 54 additions & 0 deletions simple/docker-compose.yml
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 added simple/plugins/jsxc.jar
Binary file not shown.
Loading

0 comments on commit 83b84af

Please sign in to comment.