Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
refactor: 💡 ursa proxy in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
heldrida committed Apr 24, 2023
1 parent e8e8bc5 commit 258af75
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 99 deletions.
82 changes: 0 additions & 82 deletions docker/full-node/data/nginx/app.conf

This file was deleted.

25 changes: 8 additions & 17 deletions docker/full-node/docker-compose.yml
@@ -1,32 +1,23 @@
version: '3'

services:
nginx:
image: nginx:latest
restart: unless-stopped
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
ursa-proxy:
image: ursa-proxy
build:
context: ../../.
dockerfile: Dockerfile-proxy
volumes:
- ./data/nginx:/etc/nginx/conf.d
- ${HOME}/.ursa/:/root/.ursa/:rw
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
- ./data/nginx/cache:/cache:rw
restart: unless-stopped
ports:
- "80:80"
- "443:443"
expose:
- 80
- 443
depends_on:
- certbot

nginxexporter:
image: fish/nginx-exporter
command:
- '-nginx.scrape_uri=http://nginx:80/stub_status'
expose:
- 9113
depends_on:
- nginx

certbot:
image: certbot/certbot
restart: unless-stopped
Expand Down

0 comments on commit 258af75

Please sign in to comment.