forked from spree/spree_starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
67 lines (66 loc) · 1.46 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
62
63
64
65
66
67
version: '3.7'
services:
postgres:
image: postgres:12-alpine
environment:
POSTGRES_HOST_AUTH_METHOD: trust
volumes:
- 'postgres:/var/lib/postgresql/data'
redis:
image: redis:6.0-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
WEBPACKER_DEV_SERVER_HOST: webpacker
DISABLE_SPRING: 1
webpacker:
build:
context: .
dockerfile: Dockerfile.development
environment:
- NODE_ENV=development
- RAILS_ENV=development
- WEBPACKER_DEV_SERVER_HOST=0.0.0.0
command: ./bin/webpack-dev-server
volumes:
- '.:/app'
ports:
- '3035:3035'
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: