-
Notifications
You must be signed in to change notification settings - Fork 142
/
docker-compose.dev.yml
82 lines (73 loc) · 1.85 KB
/
docker-compose.dev.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: "3"
volumes:
postgres_data:
redis_data:
services:
web:
build:
context: ./
dockerfile: Dockerfile.dev
command: [ "/start.sh" ]
volumes:
- ./convoy.json:/convoy.json
restart: on-failure
ports:
- "5005:5005"
depends_on:
- postgres
- redis_server
scheduler:
build:
context: ./
dockerfile: Dockerfile.dev
entrypoint: ["./cmd", "scheduler", "--config", "convoy.json"]
volumes:
- ./convoy.json:/convoy.json
restart: on-failure
depends_on:
- postgres
- redis_server
worker:
build:
context: ./
dockerfile: Dockerfile.dev
entrypoint: ["./cmd", "worker", "--config", "convoy.json"]
volumes:
- ./convoy.json:/convoy.json
restart: on-failure
depends_on:
- postgres
- redis_server
ingest:
build:
context: ./
dockerfile: Dockerfile.dev
entrypoint: ["./cmd", "ingest", "--config", "convoy.json"]
volumes:
- ./convoy.json:/convoy.json
restart: on-failure
depends_on:
- postgres
- redis_server
postgres:
image: postgres:15.2-alpine
restart: unless-stopped
environment:
POSTGRES_DB: convoy
POSTGRES_USER: convoy
POSTGRES_PASSWORD: convoy
PGDATA: /data/postgres
volumes:
- ./postgres_data:/data/postgres
redis_server:
image: redis:7-alpine
restart: always
volumes:
- ./redis_data:/data
prometheus:
image: prom/prometheus:v2.24.0
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- 9090:9090
restart: always