-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 822 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
41 lines (38 loc) · 822 Bytes
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
services:
web:
build:
context: .
dockerfile: Dockerfile
target: base
command: bash -c "bundle check || bundle install && rm -f tmp/pids/server.pid && bin/rails server -b 0.0.0.0"
volumes:
- .:/rails
- bundle_cache:/usr/local/bundle/gems
ports:
- "3000:3000"
environment:
- REDIS_URL=redis://redis:6379/1
- RAILS_ENV=development
- RAILS_MAX_THREADS=5
- BUNDLE_WITHOUT=
depends_on:
- redis
stdin_open: true
tty: true
networks:
- depot-network
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
- redis_data:/data
networks:
- depot-network
command: redis-server --appendonly yes
volumes:
bundle_cache:
redis_data:
networks:
depot-network:
driver: bridge