-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
50 lines (47 loc) · 1.32 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
42
43
44
45
46
47
48
49
50
version: '3.3'
services:
rabbitmq:
image: rabbitmq:3.12.7-management
ports:
- "5672:5672"
# GUI port
- "15672:15672"
environment:
- RABBITMQ_DEFAULT_USER=sensorsafrica
- RABBITMQ_DEFAULT_PASS=sensorsafrica
healthcheck:
test: [ "CMD-SHELL", "rabbitmq-diagnostics -q ping" ]
interval: 10s
timeout: 5s
retries: 2
postgres:
image: postgres:13.7
ports:
- "54321:5432"
environment:
- POSTGRES_USER=sensorsafrica
- POSTGRES_PASSWORD=sensorsafrica
- POSTGRES_DB=sensorsafrica
volumes:
- postgres_data:/var/lib/postgresql/data/
api:
build:
context: .
environment:
SENSORSAFRICA_DATABASE_URL: ${SENSORSAFRICA_DATABASE_URL:-postgres://sensorsafrica:sensorsafrica@postgres:5432/sensorsafrica}
SENSORSAFRICA_RABBITMQ_URL: ${SENSORSAFRICA_RABBITMQ_URL:-amqp://sensorsafrica:sensorsafrica@rabbitmq/}
SENSORSAFRICA_FLOWER_ADMIN_USERNAME: ${SENSORSAFRICA_FLOWER_ADMIN_USERNAME:-admin}
SENSORSAFRICA_FLOWER_ADMIN_PASSWORD: ${SENSORSAFRICA_FLOWER_ADMIN_PASSWORD:-password}
DOKKU_APP_NAME: ${DOKKU_APP_NAME:-sensorsafrica}
depends_on:
- postgres
- rabbitmq
links:
- postgres
volumes:
- .:/src
ports:
- "8000:8000"
- "5555:5555"
volumes:
postgres_data: