Skip to content

Commit

Permalink
chore: Update docker-compose file and nginx configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
flemming-pr committed Jun 14, 2024
1 parent a53e6d1 commit 90f657e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ jobs:
host: ${{ secrets.HOST }}
username: ${{ secrets.USER_NAME }}
key: ${{ secrets.PRIVATE_KEY}}
script: cd hoth && docker compose pull && docker compose up -d
script: cd hotb && docker compose pull && docker compose up -d
19 changes: 19 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: '3'

networks:
web:
external: true

services:
web:
image: ghcr.io/chaostreff-flensburg/hacks-on-the-beach-web/frontend:latest
restart: always
networks:
- web
labels:
- "traefik.enable=true"
- "traefik.http.routers.hotb.rule=Host(`hotb.c3fl.de`)"
- "traefik.http.routers.hotb.entrypoints=https,http"
- "traefik.http.services.hotb.loadbalancer.server.port=80"
- "traefik.http.routers.hotb.tls.certresolver=mytlschallenge"
- "traefik.docker.network=web"
4 changes: 2 additions & 2 deletions docker/frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN deno task build
# build nginx webserver
FROM nginx:alpine

EXPOSE 80
EXPOSE 8080

COPY ./docker/frontend/nginx.conf /etc/nginx/nginx.conf
COPY --from=builder /app/_site/ /var/www/html/
COPY --from=builder /app/_site/ /var/www/html/

0 comments on commit 90f657e

Please sign in to comment.