-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (47 loc) · 983 Bytes
/
docker-compose.yml
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
volumes:
postgres-data:
bundle:
node-modules:
services:
postgres:
image: postgres:16.3
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
redis:
image: redis:7.0.15
ports:
- '6379:6379'
sidekiq:
build: .
command: bundle exec sidekiq
depends_on:
- postgres
- redis
environment:
- REDIS_URL=redis://redis:6379/0
env_file:
- '.env'
volumes:
- .:/app
- bundle:/usr/local/bundle
- node-modules:/app/node_modules
- /app/tmp
app:
build: .
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
volumes:
- .:/app
- bundle:/usr/local/bundle
- node-modules:/app/node_modules
- /app/tmp
ports:
- '3000:3000'
depends_on:
- postgres
- redis
environment:
- REDIS_URL=redis://redis:6379/0
env_file:
- '.env'