retrospring/docker-compose.yml

37 lines
671 B
YAML
Raw Normal View History

2020-04-19 01:17:37 +02:00
version: "3.7"
services:
web:
2020-05-09 10:16:30 +02:00
build:
context: .
2020-04-19 01:17:37 +02:00
dockerfile: .docker/ruby/Dockerfile
2020-05-09 10:16:30 +02:00
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
depends_on:
2020-04-19 01:17:37 +02:00
- postgres
- redis
environment:
- SPROCKETS_CACHE=/cache
2020-04-19 01:17:37 +02:00
volumes:
- ./:/app
- cache:/cache
2020-04-19 01:17:37 +02:00
ports:
- 3000:3000
redis:
image: redis:3.2.11-alpine
ports:
- 6379:6379
postgres:
image: postgres:10.12
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: justask
2020-04-19 21:08:17 +02:00
POSTGRES_DB: justask_development
2020-10-03 12:48:33 +02:00
volumes:
- db:/var/lib/postgresql/data
2020-04-19 21:08:17 +02:00
volumes:
2020-10-03 12:48:33 +02:00
db:
2020-04-19 21:08:17 +02:00
cache: