rss-bridge #3
|
@ -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
16
recipes/.env.example
Normal 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=
|
33
recipes/docker-compose.yml
Normal file
33
recipes/docker-compose.yml
Normal 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:
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user