GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — inbox-zero/docker-compose.yml at main · chasemakes/inbox-zero

Expand file tree

/

docker-compose.yml

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
172 lines (165 loc) · 5.3 KB
/

docker-compose.yml

Copy path

File metadata and controls

172 lines (165 loc) · 5.3 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
name: inbox-zero-services
services:
db:
image: postgres:16
restart: always
# container_name: inbox-zero
env_file:
- path: ./apps/web/.env
required: false
environment:
- POSTGRES_USER=${POSTGRES_USER:-postgres}
- POSTGRES_DB=${POSTGRES_DB:-inboxzero}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-password}
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U ${POSTGRES_USER:-postgres}']
interval: 10s
timeout: 5s
retries: 5
volumes:
- database-data:/var/lib/postgresql/data/
ports:
- "${POSTGRES_BIND_HOST:-127.0.0.1}:${POSTGRES_PORT:-5432}:5432"
networks:
- inbox-zero-network
profiles:
- local-db
- all
redis:
image: redis:7
ports:
- "${REDIS_BIND_HOST:-127.0.0.1}:${REDIS_PORT:-6380}:6379"
volumes:
- database-data:/data
networks:
- inbox-zero-network
restart: always
profiles:
- local-redis
- all
serverless-redis-http:
ports:
- "${REDIS_HTTP_BIND_HOST:-127.0.0.1}:${REDIS_HTTP_PORT:-8079}:80"
image: hiett/serverless-redis-http:latest
env_file:
- path: ./apps/web/.env
required: false
environment:
SRH_MODE: env
SRH_TOKEN: ${UPSTASH_REDIS_TOKEN}
SRH_CONNECTION_STRING: "redis://redis:6379" # Using `redis` hostname since they're in the same Docker network.
networks:
- inbox-zero-network
restart: always
profiles:
- local-redis
- all
web:
image: ghcr.io/elie222/inbox-zero:latest
pull_policy: always
env_file:
- path: ./apps/web/.env
required: false
depends_on:
db:
condition: service_healthy
required: false
redis:
condition: service_started
required: false
ports:
- ${WEB_PORT:-3000}:3000
networks:
- inbox-zero-network
environment:
NEXT_PUBLIC_BASE_URL: ${NEXT_PUBLIC_BASE_URL:-http://localhost:3000}
NEXT_PUBLIC_BYPASS_PREMIUM_CHECKS: ${NEXT_PUBLIC_BYPASS_PREMIUM_CHECKS:-true}
NEXT_PUBLIC_EMAIL_SEND_ENABLED: ${NEXT_PUBLIC_EMAIL_SEND_ENABLED:-true}
NEXT_PUBLIC_AI_MODEL_SETTINGS_DISABLED: ${NEXT_PUBLIC_AI_MODEL_SETTINGS_DISABLED:-false}
DATABASE_URL: ${DATABASE_URL:-postgresql://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-password}@db:5432/${POSTGRES_DB:-inboxzero}?schema=public}
DIRECT_URL: ${DIRECT_URL:-postgresql://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-password}@db:5432/${POSTGRES_DB:-inboxzero}?schema=public}
UPSTASH_REDIS_URL: ${UPSTASH_REDIS_URL:-http://serverless-redis-http:80}
INTERNAL_API_URL: ${INTERNAL_API_URL:-http://web:3000}
restart: always
worker:
image: ghcr.io/elie222/inbox-zero:latest
pull_policy: always
command: ["/app/docker/scripts/start-worker.sh"]
env_file:
- path: ./apps/web/.env
required: false
depends_on:
web:
condition: service_started
redis:
condition: service_started
required: false
networks:
- inbox-zero-network
environment:
INTERNAL_API_URL: ${INTERNAL_API_URL:-http://web:3000}
restart: always
profiles:
- queue-worker
cron:
image: alpine:latest
command: >
sh -c "
apk add --no-cache curl && {
(
while true; do
echo \"[cron] Processing scheduled actions...\"
curl -s -X GET 'http://web:3000/api/cron/scheduled-actions' -H \"Authorization: Bearer $${CRON_SECRET}\" || echo \"[cron] Warning: scheduled-actions request failed\"
sleep 900
done
) &
(
while true; do
echo \"[cron] Processing automation jobs...\"
curl -s -X GET 'http://web:3000/api/cron/automation-jobs' -H \"Authorization: Bearer $${CRON_SECRET}\" || echo \"[cron] Warning: automation-jobs request failed\"
sleep 900
done
) &
(
while true; do
echo \"[cron] Processing follow-up reminders...\"
curl -s -X GET 'http://web:3000/api/follow-up-reminders' -H \"Authorization: Bearer $${CRON_SECRET}\" || echo \"[cron] Warning: follow-up-reminders request failed\"
sleep 3600
done
) &
(
while true; do
echo \"[cron] Processing digest emails...\"
curl -s -X GET 'http://web:3000/api/resend/digest/all' -H \"Authorization: Bearer $${CRON_SECRET}\" || echo \"[cron] Warning: digest request failed\"
sleep 1800
done
) &
(
while true; do
echo \"[cron] Processing meeting briefs...\"
curl -s -X GET 'http://web:3000/api/meeting-briefs' -H \"Authorization: Bearer $${CRON_SECRET}\" || echo \"[cron] Warning: meeting-briefs request failed\"
sleep 900
done
) &
(
while true; do
echo \"[cron] Renewing email watches...\"
curl -s -X GET 'http://web:3000/api/watch/all' -H \"Authorization: Bearer $${CRON_SECRET}\" || echo \"[cron] Warning: watch request failed\"
sleep 21600
done
) &
wait
}
"
env_file:
- path: ./apps/web/.env
required: false
depends_on:
- web
networks:
- inbox-zero-network
restart: always
volumes:
database-data:
networks:
inbox-zero-network:
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.