-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (47 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
services:
db:
image: postgres:15.2
volumes:
- ./tmp/db:/var/lib/postgresql/data
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: password
POSTGRES_USER: postgres
redis:
image: redis
environment:
REDIS_URL: 'redis://redis:6379/1'
web:
build:
context: .
dockerfile: docker/Dockerfile
command: bundle exec rails s -b 0.0.0.0
volumes:
- .:/app
ports:
- 3000:3000
environment:
DATABASE_HOST: db
depends_on:
- db
webpack:
build:
context: .
dockerfile: docker/Dockerfile
command: /bin/sh -c "yarn && yarn build"
volumes:
- .:/app
ports:
- 3035:3035
depends_on:
- web
sidekiq:
build:
context: .
dockerfile: docker/Dockerfile
command: bundle exec sidekiq
volumes:
- .:/app
depends_on:
- redis