-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (38 loc) · 1.03 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
version: "2.1"
services:
# RabbitMQ is serving as the AMQP Broker, credentials: guest:guest
rabbitmq:
image: registry.gitlab.com/cacophony/dev-rabbitmq-image:latest
ports:
- "15672:15672"
- "5672:5672"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:15672"]
interval: 5s
timeout: 5s
retries: 100
# Postgres, credentials: postgres:postgres
postgres:
image: postgres:11.2
environment:
POSTGRES_PASSWORD: "postgres"
ports:
- "5432:5432"
# Redis
redis:
image: redis
ports:
- "6379:6379"
# The Gateway Receives Discord Events and sends them to the AMQP Broker
gateway:
image: registry.gitlab.com/cacophony/gateway:latest
environment:
PORT: "8000"
ENVIRONMENT: "development"
AMQP_DSN: "amqp://guest:guest@rabbitmq:5672/"
REDIS_ADDRESS: "redis:6379"
env_file:
- .env # should contain DISCORD_TOKENS=<your Bot ID>:<your Discord Token>
depends_on:
rabbitmq:
condition: service_healthy