Add docker bits

This commit is contained in:
Ryan W
2021-09-26 14:32:21 -07:00
parent ef4fac96a7
commit 63a398fc7f
3 changed files with 52 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
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
depends_on:
- db
- redis
db:
image: postgres:13
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=changeme
volumes:
- pg_data:/var/lib/postgresql/data
redis:
image: redis
volumes:
- redis_data:/data
volumes:
pg_data:
redis_data:
bundle: