This repository was archived by the owner on Jun 25, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
77 lines (71 loc) · 1.76 KB
/
docker-compose.dev.yml
File metadata and controls
77 lines (71 loc) · 1.76 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
version: '3.8'
services:
db:
image: postgres:15
environment:
POSTGRES_DB: flowtrace_development
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- flowtrace-network
redis:
image: redis:7-alpine
ports:
- "6379:6379"
networks:
- flowtrace-network
backend:
build:
context: .
dockerfile: docker/ruby/Dockerfile.dev
command: bash -c "bundle exec rails db:create; bundle exec rails db:migrate; bundle exec rails db:seed; bundle exec rails server -b 0.0.0.0 -p 5609"
volumes:
- bundle_cache:/usr/local/bundle
ports:
- "5609:5609"
depends_on:
- db
- redis
environment:
- DATABASE_URL=postgresql://postgres:password@db:5432/flowtrace_development
- DATABASE_HOST=db
- DATABASE_USERNAME=postgres
- DATABASE_PASSWORD=password
- REDIS_URL=redis://redis:6379/0
- RAILS_ENV=development
- SECRET_KEY_BASE=development_secret_key_base_replace_in_production
- RAILS_LOG_LEVEL=debug
- PORT=5609
networks:
- flowtrace-network
stdin_open: true
tty: true
frontend:
build:
context: .
dockerfile: docker/nodejs/Dockerfile.dev
command: bash -c "npm install && npm run dev -- --host 0.0.0.0 --port 5601"
volumes:
- .:/app
- node_modules:/app/node_modules
ports:
- "5601:5601"
- "5602:5602" # HMR port
environment:
- NODE_ENV=development
- API_URL=http://backend:5609
networks:
- flowtrace-network
stdin_open: true
tty: true
volumes:
postgres_data:
bundle_cache:
node_modules:
networks:
flowtrace-network:
driver: bridge