Skip to content

Commit

Permalink
Update nginx unit
Browse files Browse the repository at this point in the history
  • Loading branch information
carkod committed Nov 18, 2024
1 parent 7cb8861 commit 704cf23
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.10.8"
python-version: "3.11"
- name: Install pipenv
run: |
python3 -m pip install pipenv
Expand All @@ -177,7 +177,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.10.8"
python-version: "3.11"
- name: Install pipenv
run: python3 -m pip install pipenv
- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ WORKDIR /app
COPY /terminal/ /app/
RUN npm install && npm run build

FROM nginx/unit:1.28.0-python3.10
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing build-essential python3-dev python-setuptools libpq-dev
FROM unit:python3.11
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing build-essential python3-dev libpq-dev
COPY --from=build-stage /app/dist /usr/share/nginx/html
COPY api api
WORKDIR api
Expand Down
2 changes: 1 addition & 1 deletion api/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ coverage = "*"
ruff = "*"

[requires]
python_version = "3.10.8"
python_version = "3.11"

[pipenv]
allow_prereleases = false
4 changes: 2 additions & 2 deletions api/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@
],
"applications": {
"api": {
"type": "python 3.10",
"type": "python 3.11",
"path": "/api",
"module": "main",
"callable": "app",
"processes": 6
}
}
},
"access_log": "/dev/stdout"
}
7 changes: 2 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ services:
- ./pg_data:/var/lib/postgresql/data
env_file:
- .env
environment:
POSTGRES_USER: "carkod"
POSTGRES_PASSWORD: "2FUd56b3a39Y"
POSTGRES_DB: "binbot"
ports:
- "5432:5432"
healthcheck:
Expand Down Expand Up @@ -116,7 +112,8 @@ services:
# restart: on-failure
# container_name: binbot
# depends_on:
# - db
# - api_db
# - data_db
# env_file:
# - .env
# environment:
Expand Down

0 comments on commit 704cf23

Please sign in to comment.