-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
61 lines (57 loc) · 1.21 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
56
57
58
59
60
61
version: "3"
services:
db:
image: postgres
volumes:
- ./tmp/db:/var/lib/postgresql/data
environment:
POSTGRES_USER: anime
POSTGRES_PASSWORD: isyourstoconquer
redis:
image: "redis:6"
command: redis-server
volumes:
- "redis:/data"
sidekiq:
build:
context: .
target: dev
command: bundle exec sidekiq -q active_storage_analysis -q active_storage_purge -q batch_queue -q sync -q default
volumes:
- .:/app
- gems:/gems
- tmp:/tmp
depends_on:
- redis
environment:
- REDIS_URL=redis://redis:6379
- RAILS_LOG_TO_STDOUT=enabled
- SYNC_CRAWLING=enabled
web:
build:
context: .
target: dev
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
stdin_open: true
tty: true
env_file:
- ./.env
ports:
- "80:3000"
volumes:
- .:/app
- /app/node_modules
- gems:/gems
- tmp:/tmp
environment:
BUNDLE_PATH: /gems
REDIS_URL: redis://redis:6379
DISABLE_GOOGLE_LOGIN: "1"
GOOGLE_OAUTH_REDIRECT_HOST: http://tanoshimu.aki
depends_on:
- db
- redis
volumes:
gems:
redis:
tmp: