-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
51 lines (49 loc) · 1.12 KB
/
docker-compose.dev.yml
File metadata and controls
51 lines (49 loc) · 1.12 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
services:
app:
build:
context: .
dockerfile: Dockerfile.dev
ports:
- "3000:3000"
environment:
- RAILS_ENV=development
- RAILS_LOG_TO_STDOUT=true
- RAILS_MAX_THREADS=5
- RAILS_MASTER_KEY=${RAILS_MASTER_KEY}
- DATABASE_HOST=db
volumes:
- .:/rails
- bundle_cache:/usr/local/bundle
- storage:/rails/storage
command: ["./bin/dev"]
depends_on:
db:
condition: service_healthy
stdin_open: true
tty: true
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
interval: 360s
timeout: 5s
retries: 3
start_period: 30s
db:
image: postgres:16-alpine
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=webhook_integration_app_development
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 360s
timeout: 5s
retries: 5
start_period: 10s
volumes:
postgres_data:
bundle_cache:
storage: