-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (42 loc) · 1.02 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
version: '3'
services:
redis:
image: redis:latest
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 5s
timeout: 30s
retries: 5
restart: always
rabbitmq:
image: rabbitmq:latest
healthcheck:
test: [ "CMD", "rabbitmq-diagnostics", "-q", "ping" ]
interval: 5s
timeout: 30s
retries: 5
ports:
- "5672:5672"
environment:
- RABBITMQ_DEFAULT_USER=user
- RABBITMQ_DEFAULT_PASS=pwd
worker:
build:
context: ./worker
dockerfile: worker.Dockerfile
env_file:
- "env/values-dev.env"
depends_on:
- redis
- rabbitmq
app:
build:
context: ./app
dockerfile: app.Dockerfile
ports:
- "8080:8080"
env_file:
- "env/values-dev.env"
depends_on:
- redis
- rabbitmq