-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f31e729
commit 8fbc080
Showing
9 changed files
with
50 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,25 @@ | ||
FROM nginx:1.25-alpine | ||
FROM python:3.12 | ||
|
||
RUN rm /etc/nginx/conf.d/default.conf | ||
COPY nginx.conf /etc/nginx/conf.d | ||
# Helps with Docker logging | ||
ENV PYTHONUNBUFFERED=1 | ||
|
||
WORKDIR /app | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y \ | ||
ca-certificates \ | ||
curl \ | ||
gnupg \ | ||
lsb-release && \ | ||
curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - && \ | ||
echo "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" > /etc/apt/sources.list.d/docker.list && \ | ||
apt-get update && \ | ||
apt-get install -y docker-ce-cli | ||
|
||
COPY . . | ||
|
||
RUN pip install -e . | ||
|
||
EXPOSE 5000 | ||
|
||
ENTRYPOINT [ "uwsgi", "--ini", "uwsgi.ini" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,12 @@ | ||
services: | ||
harvey-nginx: | ||
harvey: | ||
deploy: | ||
replicas: 2 | ||
mem_limit: '512m' | ||
mem_limit: '1024m' | ||
healthcheck: | ||
test: ['CMD-SHELL', 'if [ ! -e /var/run/nginx.pid ]; then exit 1; else exit 0; fi'] | ||
start_period: 10s | ||
start_interval: 1s | ||
interval: 30s | ||
timeout: 10s | ||
retries: 3 | ||
labels: | ||
- 'traefik.http.routers.harveyapi.rule=Host(`harveyapi.justinpaulhammond.com`) || Host(`www.harveyapi.justinpaulhammond.com`)' | ||
- 'traefik.http.routers.harveyapi.tls=true' | ||
- 'traefik.http.routers.harveyapi.tls.certresolver=letsencrypt' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
services: | ||
harvey-nginx: | ||
harvey: | ||
labels: | ||
- "traefik.http.routers.harveyapi.rule=Host(`harveyapi.localhost`)" | ||
- 'traefik.enable=true' | ||
- 'traefik.http.routers.harveyapi.rule=Host(`harveyapi.localhost`)' | ||
- 'traefik.http.services.harveyapi.loadbalancer.server.port=5000' | ||
volumes: | ||
- /Users/jhammond/harvey:/lala |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters