Skip to content

Commit

Permalink
Merge pull request #24 from snypy/dev-workflow
Browse files Browse the repository at this point in the history
Extend development workflow, addenv vars fro sentry
  • Loading branch information
nezhar authored Nov 3, 2023
2 parents c31871d + 8aeec67 commit 7e3dfd8
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
docker-compose.override.yml

.idea/*
.vscode/*
data/*
code/*
8 changes: 8 additions & 0 deletions backend/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# https://hub.docker.com/_/python
FROM python:3.10-slim
WORKDIR /usr/src/app/snypy
COPY /code/snypy-backend/requirements.txt /usr/src/app/snypy/requirements.txt
RUN pip install --no-cache-dir pip gunicorn psycopg2-binary -U
RUN pip install --no-cache-dir -r requirements.txt

EXPOSE 8000
6 changes: 6 additions & 0 deletions docker-compose.override.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ version: "3"

services:
api:
image: snypy-dev
build:
context: .
dockerfile: ./backend/Dockerfile.dev
environment:
DEBUG: "True"
ALLOWED_HOSTS: "localhost"
Expand All @@ -11,6 +15,8 @@ services:
REGISTER_VERIFICATION_URL: "http://localhost:4200/verify-user/"
RESET_PASSWORD_VERIFICATION_URL: "http://localhost:4200/set-password/?token={token}"
REGISTER_EMAIL_VERIFICATION_URL: "http://localhost:4200/verify-email/"
SENTRY_ENABLED: "True"
SENTRY_DSN: "http://changeme@localhost:9000/1"
ports:
- "8000:8000"
volumes:
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.override.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ services:
REGISTER_VERIFICATION_URL: "http://127.0.0.1:8080/verify-user/"
RESET_PASSWORD_VERIFICATION_URL: "http://127.0.0.1:8080/set-password/"
REGISTER_EMAIL_VERIFICATION_URL: "http://127.0.0.1:8080/verify-email/"
SENTRY_ENABLED: "True"
SENTRY_DSN: "http://changeme@localhost:9000/1"
ports:
- "8000:8000"
volumes:
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ services:
REGISTER_VERIFICATION_URL: "http://localhost:8080/verify-user/"
RESET_PASSWORD_VERIFICATION_URL: "http://localhost:8080/set-password/?token={token}"
REGISTER_EMAIL_VERIFICATION_URL: "http://localhost:8080/verify-email/"
SENTRY_ENABLED: "False"
depends_on:
- db

Expand Down

0 comments on commit 7e3dfd8

Please sign in to comment.