-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml.dev
94 lines (94 loc) · 2 KB
/
docker-compose.yml.dev
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
version: "3.7"
networks:
development:
volumes:
db_data:
gem_cache:
node_modules:
redis_data:
packs:
services:
db:
image: postgres:12.5-alpine
container_name: rekall_db
volumes:
- db_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
networks:
- development
ports:
- 5432
redis:
image: redis:6.2.3-alpine
networks:
- development
ports:
- 6379
volumes:
- redis_data:/var/lib/redis/data
sidekiq:
build:
context: .
dockerfile: Dockerfile.dev
container_name: rekall_sidekiq
networks:
- development
depends_on:
- web
- db
- redis
volumes:
- .:/var/app
- gem_cache:/usr/local/bundle/gems
- node_modules:/var/app/node_modules
environment:
RAILS_ENV: development
entrypoint: docker-entrypoint.sh
command: ["sidekiq"]
webpacker:
build:
context: .
dockerfile: Dockerfile.dev
command: ./bin/webpack-dev-server
ports:
- 3035:3035
networks:
- development
volumes:
- .:/var/app:cached
- gem_cache:/usr/local/bundle/gems
- node_modules:/var/app/node_modules
environment:
NODE_ENV: development
RAILS_ENV: development
WEBPACKER_DEV_SERVER_HOST: 0.0.0.0
web:
build:
context: .
dockerfile: Dockerfile.dev
container_name: rekall_app
image: rekall-dev:1.0.0
volumes:
- .:/var/app:cached
- gem_cache:/usr/local/bundle/gems
- node_modules:/var/app/node_modules
networks:
- development
ports:
- 3000:3000
stdin_open: true
tty: true
entrypoint: docker-entrypoint.sh
command: ["rails", "server", "-p", "3000", "-b", "0.0.0.0"]
environment:
RAILS_ENV: development
NODE_ENV: development
PG_USER: postgres
PG_PASSWORD: password
PG_HOST: db
WEBPACKER_DEV_SERVER_HOST: webpacker
depends_on:
- db
- webpacker