forked from frain-dev/convoy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
89 lines (80 loc) · 2.04 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
82
83
84
85
86
87
88
version: "3"
volumes:
postgres_data:
redis_data:
typesense_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
- typesense
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
- typesense
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
- typesense
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
- typesense
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:alpine
restart: always
volumes:
- ./redis_data:/data
typesense:
image: typesense/typesense:0.22.2
restart: always
environment:
TYPESENSE_DATA_DIR: /data/typesense
TYPESENSE_ENABLE_CORS: "true"
TYPESENSE_API_KEY: "convoy"
volumes:
- ./typesense_data:/data/typesense