1
0
Fork 0
mirror of https://github.com/yavook/kiwi-nginx-gen.git synced 2024-12-22 12:23:00 +00:00
(mirror) Utility for kiwi-scp
Find a file
2023-08-30 21:59:48 +02:00
.drone.yml Pretty much done. But probably not. 2022-03-04 02:52:13 +01:00
Dockerfile ENABLE_IPV6 by default 2023-08-30 21:59:48 +02:00
LICENSE Initial commit 2022-03-04 02:06:37 +01:00
README.md Pretty much done. But probably not. 2022-03-04 02:52:13 +01:00

kiwi-nginx-gen

Build Status

kiwi - simple, consistent, powerful

Utility for kiwi-scp. Also on Docker Hub.

Use Case

kiwi-nginx-gen is used in the multi-container use case alongside an official nginx container to mimic nginxproxy/nginx-proxy without publishing your docker socket to the nginx container.

Typical usage in docker-compose.yml sections:

Without TLS:

nginx:
  image: nginx:stable-alpine
  container_name: nginx
  network_mode: host
  volumes:
    - "${KIWI_PROJECT}/nginx/conf.d:/etc/nginx/conf.d:ro"

nginx-gen:
  build: yavook/kiwi-nginx-gen
  networks:
    - kiwi_hub
  depends_on:
    - nginx
  volumes:
    - "/var/run/docker.sock:/tmp/docker.sock:ro"
    - "${KIWI_PROJECT}/nginx/conf.d:/etc/nginx/conf.d"

With automatic TLS by Let's Encrypt:

nginx:
  image: nginx:stable-alpine
  container_name: nginx
  labels:
    com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: 'true'
  network_mode: host
  volumes:
    - "${KIWI_PROJECT}/nginx/certs:/etc/nginx/certs:ro"
    - "${KIWI_PROJECT}/nginx/conf.d:/etc/nginx/conf.d:ro"

nginx-gen:
  build: yavook/kiwi-nginx-gen
  networks:
    - kiwi_hub
  depends_on:
    - nginx
  volumes:
    - "/var/run/docker.sock:/tmp/docker.sock:ro"
    - "${KIWI_PROJECT}/nginx/certs:/etc/nginx/certs:ro"
    - "${KIWI_PROJECT}/nginx/conf.d:/etc/nginx/conf.d"

letsencrypt:
  image: nginxproxy/acme-companion
  depends_on:
    - nginx-gen
  volumes:
    - "/var/run/docker.sock:/var/run/docker.sock:ro"
    - "${KIWI_PROJECT}/nginx/certs:/etc/nginx/certs"
    - "${KIWI_PROJECT}/nginx/conf.d:/etc/nginx/conf.d:ro"
    - "${KIWI_PROJECT}/nginx/acme.sh:/etc/acme.sh"
  environment:
    DEFAULT_EMAIL: "${LE_MAIL_DEFAULT}"