-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (55 loc) · 1.31 KB
/
docker-compose.yml
File metadata and controls
55 lines (55 loc) · 1.31 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
services:
db:
image: postgres:16-alpine
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- postgres16:/var/lib/postgresql/data
redis:
image: redis:7.0.15-alpine
volumes:
- redis_data:/data
web:
build: .
working_dir: /rails
command: bundle exec rails s -b 0.0.0.0 -p 3000
tty: true
stdin_open: true
ports:
- '3000:3000'
volumes:
- .:/rails
depends_on:
- db
- redis
environment:
DATABASE_URL: ${DATABASE_URL}
REDIS_URL: ${REDIS_URL}
test:
build: .
command: bundle exec rspec
working_dir: /rails
volumes:
- .:/rails
depends_on:
- db
- redis
environment:
DATABASE_URL: ${DATABASE_TEST_URL}
REDIS_URL: ${REDIS_URL}
sidekiq:
build: .
command: bundle exec sidekiq
working_dir: /rails
volumes:
- .:/rails
depends_on:
- db
- redis
environment:
DATABASE_URL: ${DATABASE_URL}
REDIS_URL: ${REDIS_URL}
volumes:
postgres16:
redis_data: