generated from spree/spree_starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (52 loc) · 1.12 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
version: '3.7'
services:
postgres:
image: postgres:13-alpine
environment:
POSTGRES_HOST_AUTH_METHOD: trust
volumes:
- 'postgres:/var/lib/postgresql/data'
redis:
image: redis:6.2-alpine
volumes:
- 'redis:/data'
web:
depends_on:
- 'postgres'
- 'redis'
build:
context: .
dockerfile: Dockerfile.development
command: bash -c "rm -rf tmp/pids/server.pid && bundle exec rails s -b 0.0.0.0 -p 3000"
ports:
- "3000:3000"
volumes:
- 'bundle_cache:/bundle'
- '.:/app'
- .env:/app/.env
environment:
REDIS_URL: redis://redis:6379/0
DB_HOST: postgres
DB_PORT: 5432
DISABLE_SPRING: 1
worker:
depends_on:
- 'postgres'
- 'redis'
build:
context: .
dockerfile: Dockerfile.development
command: bundle exec sidekiq -C config/sidekiq.yml
volumes:
- 'bundle_cache:/bundle'
- '.:/app'
- .env:/app/.env
environment:
REDIS_URL: redis://redis:6379/0
DB_HOST: postgres
DB_PORT: 5432
DISABLE_SPRING: 1
volumes:
redis:
postgres:
bundle_cache: