Trying to use docker-compose for deployment
This commit is contained in:
parent
45e543ab87
commit
7c9bce03eb
3 changed files with 124 additions and 105 deletions
16
docker-compose.yml
Normal file
16
docker-compose.yml
Normal 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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue