Configured basic docker-compose
This commit is contained in:
parent
0c5bd2637b
commit
64413a8131
6
Dockerfile
Normal file
6
Dockerfile
Normal file
@ -0,0 +1,6 @@
|
||||
FROM ruby:3.2.2
|
||||
RUN mkdir -p /var/app
|
||||
COPY . /app
|
||||
WORKDIR /app
|
||||
RUN bundle install
|
||||
CMD rails server -e development -b 0.0.0.0 --log-to-stdout
|
||||
13
docker-compose.yaml
Normal file
13
docker-compose.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
app:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "3000:3000"
|
||||
volumes:
|
||||
- "./:/app"
|
||||
environment:
|
||||
- ENVIRONMENT=development
|
||||
Loading…
Reference in New Issue
Block a user