Skip to content

Commit 4d48024

Browse files
authored
Merge pull request #123 from AtoroDesu/master
Add RabbitMQ service to Docker Compose setup documentation
2 parents af5e038 + 5de2322 commit 4d48024

1 file changed

Lines changed: 23 additions & 13 deletions

File tree

docs/setup/server/docker/dockerCompose.md

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,20 +46,30 @@ services:
4646
environment:
4747
- POSTGRES_PASSWORD=postgres
4848
restart: unless-stopped
49+
50+
rabbitmq:
51+
image: rabbitmq:4-management-alpine
52+
volumes:
53+
- rabbitmq_data:/var/lib/rabbitmq
54+
restart: unless-stopped
55+
networks:
56+
- spacebar-network
4957

5058
networks:
5159
spacebar-network:
5260

5361
volumes:
5462
spacebar-db:
63+
rabbitmq_data:
5564
```
5665
5766
## Volumes
5867
59-
| Mount | Type | Container(s) | Purpose |
60-
|---------------------|-------|--------------|------------------------------|
61-
| /data | Bind | spacebar-* | All Spacebar persistent data |
62-
| /var/lib/postgresql | Named | postgres | Persistent database |
68+
| Mount | Type | Container(s) | Purpose |
69+
|---------------------|-------|--------------|-----------------------------------|
70+
| /data | Bind | spacebar-* | All Spacebar persistent data |
71+
| /var/lib/postgresql | Named | postgres | Persistent database |
72+
| /var/lib/rabbitmq | Named | rabbitmq | Persistent data for message queue |
6373
6474
## Setup
6575
@@ -95,14 +105,15 @@ This will place a few files into the `./data` bind, including `jwt.key` and `jwt
95105
This covers only what's different for a Docker Compose setup compared to a baremetal install.
96106
For the full list of config file options, check out the [configuration settings](../configuration/index.md)
97107

98-
| Key | Description | Example |
99-
|---------------------------|---------------------------------------------------|---------------------------------|
100-
| `gateway.endpointPrivate` | Internal (e.g. api-to-cdn) gateway communication | ws://spacebar-gateway:3001 |
101-
| `gateway.endpointPublic` | External (e.g. from a user) gateway communication | wss://spacebar.your.domain |
102-
| `cdn.endpointPrivate` | Internal CDN communication | http://spacebar-cdn:3001 |
103-
| `cdn.gatewayPublic` | External CDN communication | https://cdn.your.domain |
104-
| `api.endpointPrivate` | Internal API communication | http://spacebar-api:3001/api/v9 |
105-
| `api.endpointPublic` | External API communication | https://api.your.domain/api/v9 |
108+
| Key | Description | Example |
109+
|---------------------------|----------------------------------------------------|----------------------------------|
110+
| `gateway.endpointPrivate` | Internal (e.g. api-to-cdn) gateway communication | ws://spacebar-gateway:3001 |
111+
| `gateway.endpointPublic` | External (e.g. from a user) gateway communication | wss://spacebar.your.domain |
112+
| `cdn.endpointPrivate` | Internal CDN communication | http://spacebar-cdn:3001 |
113+
| `cdn.gatewayPublic` | External CDN communication | https://cdn.your.domain |
114+
| `api.endpointPrivate` | Internal API communication | http://spacebar-api:3001/api/v9 |
115+
| `api.endpointPublic` | External API communication | https://api.your.domain/api/v9 |
116+
| `rabbitmq.host` | Internal communication between Spacebar containers | amqp://guest:guest@rabbitmq:5672 |
106117

107118
3. Bring up the containers
108119
Everything should be good to go. Run the following command to start the containers running in the background.
@@ -146,7 +157,6 @@ Add the following service to the existing compose file:
146157
```shell
147158
fermi:
148159
image: fermi:latest
149-
env_file: .env
150160
networks:
151161
- spacebar-network
152162
volumes:

0 commit comments

Comments
 (0)