Skip to content

Commit

Permalink
add compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
kritzl committed Jul 11, 2024
1 parent 3c38d26 commit 60f7346
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ COPY docker/prestart.sh /app/
RUN ln -sf /app/vinywaji/asgi.py /app/main.py

# setup recommended container config
RUN mkdir /app/data
RUN mkdir -p /app/data
ENV VW_DATABASE_URL=sqlite:///app/data/db.sqlite

# add additional metadata
Expand Down
14 changes: 14 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
services:
dev:
build:
context: .
dockerfile: ./Dockerfile
ports:
- 127.0.0.1:8080:80
env_file:
- .env
volumes:
- ./src:/app/
- ./Pipfile:/app/Pipfile
- ./Pipfile.lock:/app/Pipfile.lock
- ./docker/prestart.sh:/app/prestart.sh

0 comments on commit 60f7346

Please sign in to comment.