-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (51 loc) · 1.11 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
49
50
51
52
53
54
55
version: "3.8" # docker: 19.03
# volumes:
# redis:
# postgres:
services:
db:
image: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: godwd_development
# environment:
# - POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- ./tmp/db:/var/lib/postgresql/data
ports:
- 5432:5432
web:
build: .
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3001 -b '0.0.0.0'"
volumes:
- .:/myapp
environment:
RAILS_ENV: "development"
REDIS_URL: "redis://redis:6379/1"
POSTGRES_PASSWORD: postgres
ports:
- "3001:3001"
depends_on:
- "db"
- "redis"
env_file: .env
redis:
image: redis
command: redis-server
environment:
REDIS_URL: redis://redis:6379/1
volumes:
- ./tmp/redis:/data
sidekiq:
build: .
command: "bundle exec sidekiq -C config/sidekiq.yml"
volumes:
- .:/myapp
environment:
RAILS_ENV: "development"
REDIS_URL: "redis://redis:6379/1"
depends_on:
- "redis"
- "db"
env_file: .env