rss-bridge #3

Merged
neurobomber merged 4 commits from rss-bridge into main 2024-08-11 01:40:38 -04:00
4 changed files with 87 additions and 0 deletions
Showing only changes of commit 2cab330840 - Show all commits

View File

@ -34,6 +34,33 @@ services:
- 3001:3001
volumes:
- /:/mnt/host:ro
prometheus:
image: prom/prometheus
container_name: prometheus
user: '0'
command:
- '--config.file=/etc/prometheus/prometheus.yml'
ports:
- 9090:9090
restart: unless-stopped
volumes:
- ${CONFIG_LOCATION}/prometheus:/etc/prometheus
- ${DATA_LOCATION}/prometheus:/prometheus
grafana:
image: grafana/grafana-enterprise
container_name: grafana
restart: unless-stopped
user: '0'
environment:
- GF_SERVER_ROOT_URL=https://grafana.${DOMAIN}
- GF_INSTALL_PLUGINS=grafana-clock-panel
- VIRTUAL_HOST=grafana.${DOMAIN}
- LETSENCRYPT_HOST=grafana.${DOMAIN}
- LETSENCRYPT_EMAIL=${EMAIL}
volumes:
- ${CONFIG_LOCATION}/grafana:/var/lib/grafana
ports:
- '3003:3000'
networks:
default:
name: nginx-proxy

16
recipes/.env.example Normal file
View File

@ -0,0 +1,16 @@
DOMAIN=
EMAIl=
# random secret key, use for example `base64 /dev/urandom | head -c50` to generate one
SECRET_KEY=
# allowed hosts (see documentation), should be set to your hostname(s) but might be * (default) for some proxies/providers
# ALLOWED_HOSTS=recipes.mydomain.com
# add only a database password if you want to run with the default postgres, otherwise change settings accordingly
DB_ENGINE=django.db.backends.postgresql
POSTGRES_HOST=db_recipes
POSTGRES_DB=djangodb
POSTGRES_PORT=5432
POSTGRES_USER=djangouser
POSTGRES_PASSWORD=

View File

@ -0,0 +1,33 @@
services:
db:
container_name: db-recipes
restart: always
image: postgres:16-alpine
volumes:
- ./data:/var/lib/postgresql/data
env_file:
- ./.env
app:
restart: always
image: vabene1111/recipes
env_file:
- ./.env
environment:
VIRTUAL_HOST: "recipes.${DOMAIN}"
LETSENCRYPT_HOST: "recipes.${DOMAIN}"
LETSENCRYPT_EMAIL: ${EMAIL}
volumes:
- ./config/staticfiles:/opt/recipes/staticfiles
# Do not make this a bind mount, see https://docs.tandoor.dev/install/docker/#volumes-vs-bind-mounts
- nginx_config:/opt/recipes/nginx/conf.d
- ./config/mediafiles:/opt/recipes/mediafiles
ports:
- 8075:8080
depends_on:
- db
networks:
default:
name: nginx-proxy
external: true
volumes:
nginx_config:

View File

@ -30,6 +30,17 @@ services:
volumes:
- ${CONFIG_LOCATION}/mariadb:/config
restart: unless-stopped
rss-bridge:
image: rssbridge/rss-bridge:latest
environment:
- VIRTUAL_HOST=rss-bridge.${DOMAIN}
- LETSENCRYPT_HOST=rss-bridge.${DOMAIN}
- LETSENCRYPT_EMAIL=${EMAIL}
volumes:
- ${CONFIG_LOCATION}/rss-bridge:/config:rw
ports:
- 3002:80
restart: unless-stopped
networks:
default:
name: nginx-proxy