diff --git a/Dockerfile b/Dockerfile index 4282875..37e39cf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..422e5bd --- /dev/null +++ b/compose.yaml @@ -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 \ No newline at end of file