-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
167 lines (155 loc) · 4.23 KB
/
docker-compose.dev.yml
File metadata and controls
167 lines (155 loc) · 4.23 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
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
x-rails-env: &rails-env
RAILS_ENV: development
DB_HOST: postgres
DB_PORT: 5432
DB_USER: brimming
DB_PASS: brimming_dev
DB_NAME: brimming
REDIS_URL: redis://valkey:6379/0
BRIMMING_BASE_URL: http://localhost:33000
SMTP_HOST: mailhog
SMTP_PORT: 1025
SMTP_TLS: "false"
MAILER_FROM: noreply@brimming.local
x-rails-depends: &rails-depends
postgres:
condition: service_healthy
valkey:
condition: service_started
mailhog:
condition: service_started
x-rails-volumes: &rails-volumes
- .:/src
- bundle_cache:/usr/local/bundle
services:
app:
build:
context: .
dockerfile: Dockerfile.dev
command: bash -c "bundle install && bundle exec rails server -b 0.0.0.0"
volumes: *rails-volumes
working_dir: /src
ports:
- "33000:3000"
environment:
<<: *rails-env
depends_on:
<<: *rails-depends
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:3000/up || exit 1"]
interval: 10s
timeout: 5s
retries: 3
dev:
build:
context: .
dockerfile: Dockerfile.dev
command: tail -f /dev/null
volumes: *rails-volumes
working_dir: /src
stdin_open: true
tty: true
environment:
<<: *rails-env
depends_on:
<<: *rails-depends
worker:
build:
context: .
dockerfile: Dockerfile.dev
command: bash -c "bundle install && bundle exec sidekiq"
volumes: *rails-volumes
working_dir: /src
environment:
<<: *rails-env
depends_on:
<<: *rails-depends
postgres:
image: pgvector/pgvector:pg17
environment:
POSTGRES_USER: brimming
POSTGRES_PASSWORD: brimming_dev
POSTGRES_DB: brimming
volumes:
- postgres_data:/var/lib/postgresql/data
- ./docker/postgres/init.sql:/docker-entrypoint-initdb.d/01-init.sql:ro
- ./docker/postgres/firecrawl_init.sql:/docker-entrypoint-initdb.d/02-firecrawl.sql:ro
ports:
- "35432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U brimming"]
interval: 5s
timeout: 5s
retries: 5
valkey:
image: valkey/valkey:9.0.0
ports:
- "36379:6379"
volumes:
- valkey_data:/data
mailhog:
image: mailhog/mailhog:v1.0.1
platform: linux/amd64
ports:
- "30125:1025" # SMTP
- "33025:8025" # Web UI
openldap:
image: osixia/openldap:1.5.0
environment:
LDAP_ORGANISATION: "Brimming Development"
LDAP_DOMAIN: "brimming.local"
LDAP_BASE_DN: "dc=brimming,dc=local"
LDAP_ADMIN_PASSWORD: "admin_secret"
LDAP_CONFIG_PASSWORD: "config_secret"
LDAP_READONLY_USER: "false"
LDAP_TLS: "false"
ports:
- "30389:389" # LDAP
- "30636:636" # LDAPS
volumes:
- openldap_data:/var/lib/ldap
- openldap_config:/etc/ldap/slapd.d
- ./docker/openldap/bootstrap.ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom/50-bootstrap.ldif:ro
command: --copy-service
phpldapadmin:
image: osixia/phpldapadmin:0.9.0
environment:
PHPLDAPADMIN_LDAP_HOSTS: openldap
PHPLDAPADMIN_HTTPS: "false"
ports:
- "38080:80" # Web UI for LDAP management
depends_on:
- openldap
# Firecrawl - self-hosted web page to markdown service
# Schema initialized via docker/postgres/firecrawl_init.sql
firecrawl:
image: ghcr.io/firecrawl/firecrawl:latest
platform: linux/amd64
environment:
PORT: 3002
HOST: 0.0.0.0
NUM_WORKERS_PER_QUEUE: 4
# Use existing Valkey (database 1 to avoid conflicts with Rails/Sidekiq)
REDIS_URL: redis://valkey:6379/1
REDIS_RATE_LIMIT_URL: redis://valkey:6379/1
# Firecrawl uses Postgres for job queuing (NUQ), not just auth
NUQ_DATABASE_URL: postgres://brimming:brimming_dev@postgres:5432/brimming
# Disable auth - self-hosted doesn't need it
USE_DB_AUTHENTICATION: "false"
# Allow any API key for self-hosted
TEST_API_KEY: "fc-dev"
# Allow scraping local/internal URLs
ALLOW_LOCAL_WEBHOOKS: "true"
ports:
- "33002:3002"
depends_on:
postgres:
condition: service_healthy
valkey:
condition: service_started
volumes:
bundle_cache:
postgres_data:
valkey_data:
openldap_data:
openldap_config: