-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (46 loc) · 915 Bytes
/
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
51
52
version: '3.8'
services:
app:
build: .
ports:
- "8080:8080"
depends_on:
- db
- rabbitmq
- redis
- migrate
db:
image: postgres:latest
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: price_alert_db
ports:
- "5432:5432"
volumes:
- db_data:/var/lib/postgresql/data
rabbitmq:
image: rabbitmq:3-management
ports:
- "5672:5672"
- "15672:15672"
environment:
RABBITMQ_DEFAULT_USER: user
RABBITMQ_DEFAULT_PASS: password
redis:
image: redis:latest
ports:
- "6379:6379"
migrate:
image: migrate/migrate
command: [
"-path", "/migrations",
"-database", "postgres://user:password@db:5432/price_alert_db?sslmode=disable",
"up"
]
volumes:
- ./migrations:/migrations
depends_on:
- db
volumes:
db_data: