From b089022e2322fce6d904857e3ea4673e53dcbf6f Mon Sep 17 00:00:00 2001 From: Lucilio Correia Date: Wed, 31 Dec 2025 22:05:48 -0300 Subject: [PATCH] dev stack setup --- .gitignore | 4 ++++ conf/Caddyfile | 5 +++++ docker-compose.yml | 45 +++++++++++++++++++++++++++++++++++++++++++++ sample.env | 0 4 files changed, 54 insertions(+) create mode 100644 .gitignore create mode 100644 conf/Caddyfile create mode 100644 docker-compose.yml create mode 100644 sample.env diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4719ca2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +.DS_Store +*.sublime-project +*.sublime-workspace +caddy_data \ No newline at end of file diff --git a/conf/Caddyfile b/conf/Caddyfile new file mode 100644 index 0000000..6ef2776 --- /dev/null +++ b/conf/Caddyfile @@ -0,0 +1,5 @@ +obastidor.test { + tls + reverse_proxy obastidor_httpd +} + diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..560a6e6 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,45 @@ +name: proxy + +services: + caddy: + image: lucaslorentz/caddy-docker-proxy:ci-alpine + container_name: caddy + ports: + - 80:80 + - 443:443/tcp + - 443:443/udp + environment: + - CADDY_INGRESS_NETWORKS=proxy-network + networks: + - proxy-network + volumes: + - /var/run/docker.sock:/var/run/docker.sock + - ./caddy_data:/data + restart: unless-stopped + + mailpit: + container_name: mailpit + image: axllent/mailpit + labels: + caddy: mailpit.test + caddy.reverse_proxy: "{{upstreams 8025}}" + caddy.tls: "internal" + networks: + - proxy-network + + adminer: + container_name: adminer + image: adminer + networks: + - proxy-network + labels: + caddy: adminer.test + caddy.reverse_proxy: "{{upstreams 8080}}" + caddy.tls: "internal" + +networks: + proxy-network: + name: proxy-network + +volumes: + caddy_data: {} \ No newline at end of file diff --git a/sample.env b/sample.env new file mode 100644 index 0000000..e69de29