Skip to content

Commit

Permalink
move bind_mount files under docker directory
Browse files Browse the repository at this point in the history
  • Loading branch information
JackBlackLight committed Jan 10, 2025
1 parent bfcb797 commit fbe04a8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bin/dlc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fi


echo "Running docker compose up"
docker compose up --exit-code-from dlc
docker compose -f 'docker/bind_mount/docker-compose.yml' up --exit-code-from dlc
container_id=$(docker ps -aqf "name=dlc")
exit_code=$(docker inspect $container_id --format='{{.State.ExitCode}}')

Expand Down
6 changes: 3 additions & 3 deletions Dockerfile → docker/bind_mount/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - && \
ENV RAILS_ENV=development \
NODE_ENV=development

WORKDIR /app

COPY . /app

COPY entrypoint.sh /usr/bin/
COPY docker/bind_mount/entrypoint.sh /usr/bin/

RUN chmod +x /usr/bin/entrypoint.sh

WORKDIR /app

RUN bundle install

RUN yarn install --ignore-engines
Expand Down
5 changes: 3 additions & 2 deletions docker-compose.yml → docker/bind_mount/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ version: '3.8'
services:
dlc:
build:
context: .
context: ../../.
dockerfile: docker/bind_mount/Dockerfile
ports:
- "3000:3000" # Rails server
- "3035:3035" # Shakapacker dev server
volumes:
- .:/app # Bind-mount the project folder to /app inside the container
- ../../.:/app # Bind-mount the project folder to /app inside the container
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
Expand Down
File renamed without changes.

0 comments on commit fbe04a8

Please sign in to comment.