sss
All checks were successful
Build and Deploy koneko.rocks / build-and-deploy (push) Successful in 3s

This commit is contained in:
koneko 2025-04-23 18:06:40 +02:00
parent 9cb8b2e4f1
commit c145bfb9a7

View File

@ -1,15 +1,19 @@
services:
web:
image: nginx:alpine # Use the official NGINX Alpine image
volumes:
- ./index.html:/usr/share/nginx/html/index.html # Map the local index.html to the container's directory
container_name: koneko-landing
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile
labels:
- "traefik.enable=true" # Enable this container to be routed by Traefik
- "traefik.http.routers.myapp.rule=Host(`koneko.rocks`)"
- "traefik.http.services.myapp.loadbalancer.server.port=80" # Expose the NGINX container on port 80
- "traefik.enable=true"
- "traefik.http.routers.koneko.rule=Host(`koneko.rocks`)"
- "traefik.http.routers.koneko.entrypoints=websecure"
- "traefik.http.routers.koneko.tls=true"
- "traefik.http.routers.koneko.tls.certresolver=letsencrypt"
- "traefik.http.services.koneko.loadbalancer.server.port=80"
networks:
- frontend # Connect this service to the same network as Traefik
restart: unless-stopped # Optionally restart the container if it stops
- frontend
networks:
frontend: