-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (56 loc) · 1.9 KB
/
Copy pathdocker-compose.yml
File metadata and controls
59 lines (56 loc) · 1.9 KB
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
# Self-hosting, in one file.
#
# docker compose up -d
# open http://localhost:8787
#
# The database is the only stateful piece. The app is a stateless container
# that migrates on boot, so scaling it out is `--scale app=3` and nothing else
# (the migration takes an advisory lock, so the extra copies wait rather than
# race).
services:
db:
image: postgres:17-alpine
restart: unless-stopped
environment:
POSTGRES_USER: agenticjobs
POSTGRES_PASSWORD: agenticjobs
POSTGRES_DB: agenticjobs
volumes:
- pgdata:/var/lib/postgresql/data
ports:
# Published so psql and the CLI can reach it from the host. Override
# POSTGRES_PORT when something else on this machine already has 5432.
- '${POSTGRES_PORT:-5432}:5432'
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U agenticjobs -d agenticjobs']
interval: 5s
timeout: 5s
retries: 20
app:
build: .
restart: unless-stopped
depends_on:
db:
condition: service_healthy
environment:
DATABASE_URL: postgres://agenticjobs:agenticjobs@db:5432/agenticjobs
PGSSLMODE: disable
PORT: '8787'
PUBLIC_URL: ${PUBLIC_URL:-http://localhost:8787}
BOARD_NAME: ${BOARD_NAME:-Agentic Jobs}
BOARD_TAGLINE: ${BOARD_TAGLINE:-Jobs posted here, not scraped from somewhere else.}
BOARD_TOPICS: ${BOARD_TOPICS:-agentic,ai,engineering}
DIRECTORY_URL: ${DIRECTORY_URL:-https://agenticjobs.work}
ANNOUNCE: ${ANNOUNCE:-false}
DIRECTORY: ${DIRECTORY:-false}
RESEND_API_KEY: ${RESEND_API_KEY:-}
MAIL_FROM: ${MAIL_FROM:-}
COINPAY_CLIENT_ID: ${COINPAY_CLIENT_ID:-}
COINPAY_CLIENT_SECRET: ${COINPAY_CLIENT_SECRET:-}
COINPAY_API_KEY: ${COINPAY_API_KEY:-}
COINPAY_BUSINESS_ID: ${COINPAY_BUSINESS_ID:-}
COINPAY_WEBHOOK_SECRET: ${COINPAY_WEBHOOK_SECRET:-}
ports:
- '${PORT:-8787}:8787'
volumes:
pgdata: