-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.yml
72 lines (71 loc) · 1.38 KB
/
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
68
69
70
71
72
name: liburrun
services:
base:
image: liburrun:latest
common_frontend:
extends:
service: base
volumes:
- .:/liburrun_app
- node_modules:/liburrun_app/node_modules
common_backend:
extends:
service: base
volumes:
- .:/liburrun_app
db:
image: postgres:14.3
ports:
- "5432:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: redis:7.0.1
ports:
- "6379:6379"
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 60s
timeout: 10s
retries: 3
web:
extends:
service: common_backend
build: .
command: bin/rails server -p 3000 -b 0.0.0.0
ports:
- "3000:3000"
volumes:
- node_modules:/liburrun_app/node_modules
depends_on:
- db
- redis
worker:
extends:
service: common_backend
command: bundle exec sidekiq -C config/sidekiq.yml
depends_on:
- web
css:
extends:
service: common_frontend
command: yarn build:css --watch
stdin_open: true
depends_on:
- web
js:
extends:
service: common_frontend
command: yarn build --watch
stdin_open: true
depends_on:
- web
volumes:
postgres_data:
redis_data:
node_modules: