Files
baclight/compose.yaml
T

43 lines
856 B
YAML
Raw Normal View History

2021-09-26 14:32:21 -07:00
services:
web:
build:
context: ./
dockerfile: development.Dockerfile
2021-09-26 14:32:21 -07:00
command: bash -c "rm -f tmp/pids/server.pid && bin/rails s -p 3000 -b '0.0.0.0'"
volumes:
- .:/usr/src/app
- bundle:/usr/local/bundle
ports:
- "3000:3000"
env_file:
- .env
2021-09-26 15:51:15 -07:00
environment:
- HISTFILE=/usr/src/app/log/.bash_history
2022-01-17 10:01:12 -08:00
depends_on:
2023-05-04 14:16:25 -07:00
db:
condition: service_healthy
redis:
condition: service_started
2021-09-26 14:32:21 -07:00
db:
image: postgres:17
2021-09-26 14:32:21 -07:00
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=changeme
volumes:
- pg_data:/var/lib/postgresql/data
2023-05-04 14:16:25 -07:00
healthcheck:
test: pg_isready -U postgres
interval: 2s
timeout: 5s
retries: 30
2021-09-26 14:32:21 -07:00
redis:
image: redis
volumes:
- redis_data:/data
volumes:
pg_data:
redis_data:
bundle: