Trying to use docker-compose for deployment

This commit is contained in:
Christoph Haas 2018-05-06 19:05:47 +02:00
parent 45e543ab87
commit 7c9bce03eb
3 changed files with 124 additions and 105 deletions

16
docker-compose.yml Normal file
View file

@ -0,0 +1,16 @@
version: '3'
services:
# db:
# image: postgres
# volumes:
# - ./tmp/db:/var/lib/postgresql/data
debshots:
build: .
command: bundle exec rails s -p 3000 -b '0.0.0.0'
volumes:
- .:/myapp
ports:
- "3000:3000"
# depends_on:
# - db