Skip to content

Commit

Permalink
fix: fix various issues
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-sig committed Dec 20, 2024
1 parent 5bdfdef commit dd1f3f8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,13 @@ jobs:
- name: Set up Docker
uses: docker/setup-buildx-action@v3

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Get latest git tag
run: |
git fetch --tags
Expand Down
5 changes: 4 additions & 1 deletion dashboard.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,8 @@ HEALTHCHECK --interval=30s --timeout=3s \
# Command for production server
CMD ["gunicorn", "portfolio_analytics.dashboard.dashboard_main:server", \
"--bind", "0.0.0.0:8050", \
"--workers", "4", \
"--workers", "2", \
"--threads", "4", \
"--worker-class", "gthread", \
"--worker-tmp-dir", "/dev/shm", \
"--log-level", "info"]
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
ports:
- "8000:8000"
volumes:
- ./data:/app/portfolio_analytics/common/data
- ./portfolio_analytics/common/data:/app/portfolio_analytics/common/data
# Runs container processes with host user's UID/GID to avoid permission issues
# Files created in volumes will be owned by the host user instead of root
user: "${UID:-1000}:${GID:-1000}"
Expand All @@ -27,7 +27,7 @@ services:
ports:
- "8050:8050"
volumes:
- ./data:/app/portfolio_analytics/common/data
- ./portfolio_analytics/common/data:/app/portfolio_analytics/common/data
# Runs container processes with host user's UID/GID to avoid permission issues
# Files created in volumes will be owned by the host user instead of root
user: "${UID:-1000}:${GID:-1000}"
Expand Down

0 comments on commit dd1f3f8

Please sign in to comment.