Rename docker-compose.yml to compose.yaml (preferred by docker)

This commit is contained in:
Ryan W
2023-09-30 09:35:29 -07:00
parent a76bcdb84e
commit ba3da35c8f
+40
View File
@@ -0,0 +1,40 @@
services:
web:
build: .
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
environment:
- HISTFILE=/usr/src/app/log/.bash_history
depends_on:
db:
condition: service_healthy
redis:
condition: service_started
db:
image: postgres:16
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=changeme
volumes:
- pg_data:/var/lib/postgresql/data
healthcheck:
test: pg_isready -U postgres
interval: 2s
timeout: 5s
retries: 30
redis:
image: redis
volumes:
- redis_data:/data
volumes:
pg_data:
redis_data:
bundle: