-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (47 loc) · 1.06 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
services:
api:
image: ruby
container_name: api
environment:
- REDIS_URL=redis://redis:6379/0
volumes:
- ./api:/app
- rubygems:/usr/local/bundle
working_dir: /app
command: bash -c "bundle install && rackup"
ports:
- "3000:3000"
front:
image: ruby
container_name: front
volumes:
- ./front:/app
- rubygems:/usr/local/bundle
working_dir: /app
command: bash -c "bundle install && ruby app.rb"
ports:
- "3001:3001"
sidekiq:
image: ruby
container_name: sidekiq
environment:
- REDIS_URL=redis://redis:6379/0
volumes:
- ./api:/app
- rubygems:/usr/local/bundle
working_dir: /app
command: bash -c "bundle install && sidekiq -r ./lib/import_job.rb"
redis:
image: redis
container_name: redis
postgres:
image: postgres
container_name: postgres
environment:
- POSTGRES_PASSWORD=postgres
volumes:
- ./api/config/init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- "5432:5432"
volumes:
rubygems: