Create the rails project and build docker-compose.

This commit is contained in:
2020-08-17 18:59:01 +01:00
commit 2bab452ae7
90 changed files with 2244 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
version: '3'
services:
db:
image: postgres
volumes:
- ./tmp/db:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: password
web:
build: .
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
volumes:
- .:/myapp
ports:
- "3000:3000"
depends_on:
- db