-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
48 lines (42 loc) · 1.08 KB
/
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
version: "3.8"
services:
redis:
image: redis
command: redis-server
# volumes:
# - 'redis:/data'
# db:
# image: postgres:12.6
# volumes:
# - ./tmp/db:/var/lib/postgresql/data
# environment:
# POSTGRES_USER: otlob
# POSTGRES_PASSWORD: 123456
web:
# The root directory from which we're building.
build: .
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
volumes:
- .:/yala_notlob
ports:
- "3000:3000"
depends_on:
- redis
sidekiq:
depends_on:
- 'redis'
build: .
command: sidekiq -C config/sidekiq.yml.erb
volumes:
- '.:/yala_notlob'
cable:
depends_on:
- 'redis'
build: .
command: puma -p 28080 cable/config.ru
ports:
- '28080:28080'
volumes:
- '.:/yala_notlob'
# env_file:
# - '.env'