2020-04-18 16:17:37 -07:00
|
|
|
version: "3.7"
|
|
|
|
|
|
|
|
services:
|
|
|
|
web:
|
2020-05-09 01:16:30 -07:00
|
|
|
build:
|
|
|
|
context: .
|
2020-04-18 16:17:37 -07:00
|
|
|
dockerfile: .docker/ruby/Dockerfile
|
2022-12-23 17:57:29 -08:00
|
|
|
command: bash -c "rm -f tmp/pids/server.pid && rdebug-ide --skip_wait_for_start --host 0.0.0.0 --port 1234 --dispatcher-port 26162 -- bin/rails s -p 3000 -b '0.0.0.0'"
|
2020-05-09 01:16:30 -07:00
|
|
|
depends_on:
|
2020-04-18 16:17:37 -07:00
|
|
|
- postgres
|
|
|
|
- redis
|
2020-04-25 04:02:20 -07:00
|
|
|
environment:
|
|
|
|
- SPROCKETS_CACHE=/cache
|
2020-04-18 16:17:37 -07:00
|
|
|
volumes:
|
|
|
|
- ./:/app
|
2020-04-25 04:02:20 -07:00
|
|
|
- cache:/cache
|
2020-04-18 16:17:37 -07:00
|
|
|
ports:
|
|
|
|
- 3000:3000
|
2022-12-23 17:57:29 -08:00
|
|
|
- 1234:1234
|
2020-04-18 16:17:37 -07:00
|
|
|
|
|
|
|
redis:
|
|
|
|
image: redis:3.2.11-alpine
|
2022-12-23 17:57:29 -08:00
|
|
|
ports:
|
2020-04-18 16:17:37 -07:00
|
|
|
- 6379:6379
|
|
|
|
|
|
|
|
postgres:
|
|
|
|
image: postgres:10.12
|
|
|
|
ports:
|
|
|
|
- 5432:5432
|
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD: justask
|
2020-04-19 12:08:17 -07:00
|
|
|
POSTGRES_DB: justask_development
|
2020-10-03 03:48:33 -07:00
|
|
|
volumes:
|
|
|
|
- db:/var/lib/postgresql/data
|
2020-04-19 12:08:17 -07:00
|
|
|
|
|
|
|
volumes:
|
2020-10-03 03:48:33 -07:00
|
|
|
db:
|
2022-12-23 17:57:29 -08:00
|
|
|
cache:
|