-
Notifications
You must be signed in to change notification settings - Fork 3
/
compose.yaml
40 lines (38 loc) · 961 Bytes
/
compose.yaml
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
# On local the containers will be built locally and tagged, able to be published.
# On prod the compose file will pull from the docker registry
services:
rabbitmq:
image: rabbitmq:3-management-alpine
restart: unless-stopped
labels:
spek.description: "RabbitMQ broker"
volumes:
- rabbitmq-data:/var/lib/rabbitmq/
- rabbitmq-logs:/var/log/rabbitmq/
ports:
- 5672:5672
- 15672:15672
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "-q", "ping"]
interval: 60s
timeout: 5s
api:
restart: unless-stopped
labels:
spek.description: "Backend Service"
depends_on:
- postgres
- rabbitmq
postgres:
image: postgres:13-alpine
restart: unless-stopped
labels:
spek.description: "Postgres Database"
volumes:
- postgres-data:/var/lib/postgresql/data
ports:
- 5432:5432
volumes:
postgres-data:
rabbitmq-data:
rabbitmq-logs: