Repository navigation
Expand file tree
/
Copy pathcompose.yaml
More file actions
75 lines (70 loc) · 1.99 KB
/
Copy pathcompose.yaml
File metadata and controls
75 lines (70 loc) · 1.99 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
services:
db:
image: postgres:16
environment:
POSTGRES_DB: contract_crawler_development
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
- redis-data:/data
api:
build:
context: .
dockerfile: docker/dev.Dockerfile
command: bash -lc "bundle install && bin/rails db:prepare && bin/rails server -b 0.0.0.0"
depends_on:
- db
- redis
environment:
DATABASE_URL: postgres://postgres:postgres@db:5432/contract_crawler_development
DATABASE_URL_TEST: postgres://postgres:postgres@db:5432/contract_crawler_test
FRONTEND_ORIGIN: http://localhost:5173
REDIS_URL: redis://redis:6379/0
RAILS_ENV: development
SAM_GOV_API_BASE_URL: ${SAM_GOV_API_BASE_URL:-https://api.sam.gov}
SAM_GOV_API_KEY: ${SAM_GOV_API_KEY:-}
ports:
- "3000:3000"
volumes:
- .:/rails
- bundle-data:/bundle
worker:
build:
context: .
dockerfile: docker/dev.Dockerfile
command: bash -lc "bundle install && bundle exec sidekiq -C config/sidekiq.yml"
depends_on:
- db
- redis
environment:
DATABASE_URL: postgres://postgres:postgres@db:5432/contract_crawler_development
DATABASE_URL_TEST: postgres://postgres:postgres@db:5432/contract_crawler_test
REDIS_URL: redis://redis:6379/0
RAILS_ENV: development
SAM_GOV_API_BASE_URL: ${SAM_GOV_API_BASE_URL:-https://api.sam.gov}
SAM_GOV_API_KEY: ${SAM_GOV_API_KEY:-}
volumes:
- .:/rails
- bundle-data:/bundle
frontend:
image: node:22-alpine
command: sh -lc "npm install && npm run dev -- --host 0.0.0.0"
environment:
VITE_API_BASE_URL: http://localhost:3000
ports:
- "5173:5173"
volumes:
- ./frontend:/workspace
working_dir: /workspace
volumes:
bundle-data:
postgres-data:
redis-data: