@@ -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
5058networks :
5159 spacebar-network :
5260
5361volumes :
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
95105This covers only what's different for a Docker Compose setup compared to a baremetal install.
96106For 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
1071183. Bring up the containers
108119Everything 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