-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.test.yml
58 lines (54 loc) · 1.16 KB
/
docker-compose.test.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
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: .
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_ENV: test
RACK_ENV: test
WEB_CONCURRENCY: 8
web:
build: .
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails server -b 0.0.0.0 -p 3000"
stdin_open: true
tty: true
ports:
- "40000:3000"
volumes:
- .:/app
- /app/node_modules
- gems:/gems
- tmp:/tmp
restart: always
environment:
BUNDLE_PATH: /gems
REDIS_URL: redis://redis:6379
RAILS_ENV: test
RACK_ENV: test
WEB_CONCURRENCY: 8
GRAPHQL_HOST: https://jibun.akinyele.ca
depends_on:
- db
volumes:
gems:
redis:
tmp: