-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
51 lines (48 loc) · 958 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
# To start all docker containers run: `docker-compose up`
#
version: '3'
services:
app:
build: .
command: bash -c "bundle install && bundle exec rails s -p 3000 -b '0.0.0.0'"
ports:
- "3000:3000"
depends_on:
- db
- redis
volumes:
- .:/app
- gem_cache:/gems
tty: true
environment:
- SKYLIGHT_DISABLE_DEV_WARNING=true
stdin_open: true
sidekiq:
build: .
command: bundle exec sidekiq --config config/sidekiq.yml
depends_on:
- db
- redis
volumes:
- .:/app
- gem_cache:/gems
db:
image: postgres:14
restart: always
environment:
POSTGRES_USER: ubuntu
POSTGRES_PASSWORD: password
POSTGRES_DB: app_development
volumes:
- db-data:/var/lib/postgresql/data
logging:
driver: none
redis:
image: redis
volumes:
- redis:/data
volumes:
db-data:
driver: local
gem_cache: {}
redis: {}