This repository has been archived by the owner on Nov 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
89 lines (84 loc) · 2.2 KB
/
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
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
89
services:
mqtt:
build:
context: mqtt-publisher
dockerfile: Dockerfile
depends_on:
postgres:
condition: service_healthy
processor:
condition: service_started
environment:
DATABASE_URL: "postgres://inbox:inbox@postgres:5432/inbox"
MQTT_PASSWORD: ${MOSQUITTO_PASSWORD}
image: econialabs/inbox:mqtt
ports:
- "21883:21883"
- "21884:21884"
restart: unless-stopped
postgres:
environment:
POSTGRES_USER: "inbox"
POSTGRES_DB: "inbox"
POSTGRES_PASSWORD: "inbox"
image: postgres:14-bookworm
restart: always
volumes:
- "db:/var/lib/postgresql/data"
healthcheck:
test: pg_isready -h localhost -p 5432 -U inbox || exit 1
interval: 5s
timeout: 3s
retries: 3
start_period: 15s
start_interval: 5s
ports:
- "5432:5432"
postgrest:
depends_on:
postgres:
condition: service_healthy
environment:
PGRST_DB_URI: "postgres://inbox:inbox@postgres:5432/inbox"
PGRST_DB_ANON_ROLE: web_anon
PGRST_DB_MAX_ROWS: ${POSTGREST_MAX_ROWS}
image: postgrest/postgrest
ports:
- "3000:3000"
restart: unless-stopped
processor:
extra_hosts:
- "host.docker.internal:host-gateway"
build:
context: .
dockerfile: processor/rust/Dockerfile
environment:
DATABASE_URL: "postgres://inbox:inbox@postgres:5432/inbox"
CONTRACT_ADDRESS: ${CONTRACT_ADDRESS}
GRPC_AUTH_TOKEN: ${GRPC_AUTH_TOKEN}
GRPC_DATA_SERVICE_URL: ${GRPC_DATA_SERVICE_URL}
STARTING_VERSION: ${STARTING_VERSION}
depends_on:
postgres:
condition: service_healthy
image: econialabs/inbox:processor
restart: unless-stopped
stop_signal: SIGKILL
sql_extensions:
build:
context: .
dockerfile: sql_extensions/Dockerfile
environment:
DATABASE_URL: "postgres://inbox:inbox@postgres:5432/inbox"
depends_on:
postgres:
condition: service_healthy
processor:
condition: service_started
image: econialabs/inbox:sql_extensions
volumes:
- ./sql_extensions/migrations/:/migrations
- ./sql_extensions/sql/:/sql
volumes:
db:
driver: local