From c145bfb9a7546905ca1f1db7a0cd277326b76862 Mon Sep 17 00:00:00 2001 From: koneko <67551503+koneko@users.noreply.github.com> Date: Wed, 23 Apr 2025 18:06:40 +0200 Subject: [PATCH] sss --- docker-compose.yml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index a9e1472..51b372f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,15 +1,19 @@ -services: +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: