-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (51 loc) · 904 Bytes
/
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
version: "2.2"
volumes:
postgres:
redis:
services:
api:
build: ./api
command: bundle exec rails server -p 3000 -b '0.0.0.0'
ports:
- 4000:3000
volumes:
- ./api:/app
depends_on:
- postgres
- redis
env_file:
- .env
web:
build: ./web
command: yarn run dev
ports:
- 4001:9000
volumes:
- ./web:/app
env_file:
- .env
mem_limit: 4g
sidekiq:
build: ./api
command: bundle exec sidekiq -q default,3 -q high,5 -q low,1
volumes:
- ./api:/app
depends_on:
- postgres
- redis
env_file:
- .env
postgres:
image: postgres:9.6.6-alpine
ports:
- 5051:5432
volumes:
- postgres:/var/lib/postgresql/data
redis:
image: redis:4.0.2-alpine
command:
- redis-server
- --appendonly
- "yes"
volumes:
- redis:/data