Skip to content

Commit

Permalink
run home on nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
justb4 committed May 15, 2024
1 parent d69c397 commit c49bbf4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
16 changes: 9 additions & 7 deletions services/home/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
FROM python:3.8.10-slim-buster
# Builder
FROM python:3.12-slim-bullseye as build-stage

LABEL maintainer="Just van den Broecke <justb4@gmail.com>"

RUN pip install mkdocs

COPY ./docs/ /docs/

WORKDIR /docs/

EXPOSE 8000
RUN cd /docs && pip install mkdocs && mkdir /var/www && mkdocs build -d /var/www

CMD ["mkdocs", "serve", "-a", "0.0.0.0:8000"]
# Deployer
FROM nginx:stable-alpine as production-stage
LABEL maintainer="Just van den Broecke <justb4@gmail.com>"
COPY --from=build-stage /var/www /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
5 changes: 2 additions & 3 deletions services/home/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3.3'

services:

Expand All @@ -8,8 +7,8 @@ services:

container_name: home

expose:
- "8000"
# expose:
# - "8000"

# ports:
# - "5000:8000"
Expand Down
3 changes: 1 addition & 2 deletions services/traefik/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
version: '3.3'

services:
proxy:
image: traefik:v2.9.9
image: traefik:v2.11.0

container_name: traefik

Expand Down

0 comments on commit c49bbf4

Please sign in to comment.