From 3ef4099e2bc2f47331526962b2bfe87230ffc013 Mon Sep 17 00:00:00 2001 From: piccihud Date: Mon, 13 May 2024 08:32:46 +0200 Subject: [PATCH] Aggiunto file docker compose --- castopod/.env | 9 ++++++ castopod/docker-compose.yml | 59 ++++++++++++++++++++++++++++++++++ code/.env | 3 ++ code/docker-compose.yml | 20 ++++++++++++ freshrss/docker-compose.yml | 23 +++++++++++++ gitea/.env | 1 + gitea/docker-compose.yml | 23 +++++++++++++ kuma/docker-compose.yml | 10 ++++++ memos/docker-compose.yml | 8 +++++ ntfy/docker-compose.yml | 14 ++++++++ vaultwarden/.env | 6 ++++ vaultwarden/docker-compose.yml | 34 ++++++++++++++++++++ 12 files changed, 210 insertions(+) create mode 100644 castopod/.env create mode 100644 castopod/docker-compose.yml create mode 100644 code/.env create mode 100644 code/docker-compose.yml create mode 100644 freshrss/docker-compose.yml create mode 100644 gitea/.env create mode 100644 gitea/docker-compose.yml create mode 100644 kuma/docker-compose.yml create mode 100644 memos/docker-compose.yml create mode 100644 ntfy/docker-compose.yml create mode 100644 vaultwarden/.env create mode 100644 vaultwarden/docker-compose.yml diff --git a/castopod/.env b/castopod/.env new file mode 100644 index 0000000..a934147 --- /dev/null +++ b/castopod/.env @@ -0,0 +1,9 @@ +MYSQL_PASSWORD="" +CP_BASEURL="" +CP_ANALYTICS_SALT="" +CP_REDIS_PASSWORD="" +CP_EMAIL_SMTP_HOST="" +CP_EMAIL_FROM="" +CP_EMAIL_SMTP_USERNAME="" +CP_EMAIL_SMTP_PASSWORD="" +MYSQL_ROOT_PASSWORD="" diff --git a/castopod/docker-compose.yml b/castopod/docker-compose.yml new file mode 100644 index 0000000..6499089 --- /dev/null +++ b/castopod/docker-compose.yml @@ -0,0 +1,59 @@ +services: + app: + image: castopod/castopod:latest + container_name: "castopod-app" + env_file: .env + volumes: + - castopod-media:/var/www/castopod/public/media + environment: + MYSQL_DATABASE: castopod + MYSQL_USER: castopod + MYSQL_PASSWORD: ${MYSQL_PASSWORD} + CP_BASEURL: ${CP_BASEURL} + CP_ANALYTICS_SALT: ${CP_ANALYTICS_SALT} + CP_CACHE_HANDLER: redis + CP_REDIS_HOST: redis + CP_REDIS_PASSWORD: ${CP_REDIS_PASSWORD} + CP_EMAIL_SMTP_HOST: ${CP_EMAIL_SMTP_HOST} + CP_EMAIL_FROM: ${CP_EMAIL_FROM} + CP_EMAIL_SMTP_USERNAME: ${CP_EMAIL_SMTP_USERNAME} + CP_EMAIL_SMTP_PASSWORD: ${CP_EMAIL_SMTP_PASSWORD} + CP_EMAIL_SMTP_PORT: 587 + networks: + - castopod-app + - castopod-db + ports: + - 3008:8000 + restart: unless-stopped + + mariadb: + image: mariadb:10.5 + container_name: "castopod-mariadb" + networks: + - castopod-db + volumes: + - castopod-db:/var/lib/mysql + environment: + MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD} + MYSQL_DATABASE: castopod + MYSQL_USER: castopod + MYSQL_PASSWORD: ${MYSQL_PASSWORD} + restart: unless-stopped + + redis: + image: redis:7.0-alpine + container_name: "castopod-redis" + command: --requirepass ${CP_REDIS_PASSWORD} + volumes: + - castopod-cache:/data + networks: + - castopod-app + +volumes: + castopod-media: + castopod-db: + castopod-cache: + +networks: + castopod-app: + castopod-db: diff --git a/code/.env b/code/.env new file mode 100644 index 0000000..a614ade --- /dev/null +++ b/code/.env @@ -0,0 +1,3 @@ +COLLABORA_USERNAME="" +COLLABORA_PASSWORD="" +COLLABORA_DOMAIN="" diff --git a/code/docker-compose.yml b/code/docker-compose.yml new file mode 100644 index 0000000..521b223 --- /dev/null +++ b/code/docker-compose.yml @@ -0,0 +1,20 @@ +services: + code: + container_name: code + image: collabora/code:latest + env_file: .env + restart: unless-stopped + environment: + password: ${COLLABORA_PASSWORD} + username: ${COLLABORA_USERNAME} + domain: ${COLLABORA_DOMAIN} + dictionaries: en it + extra_params: --o:ssl.enable=true --o:ssl.termination=false # Set SSL options + ports: + - 3005:9980 + volumes: + - /etc/localtime:/etc/localtime + - /etc/timezone:/etc/timezone + cap_add: + - MKNOD + tty: true diff --git a/freshrss/docker-compose.yml b/freshrss/docker-compose.yml new file mode 100644 index 0000000..ab6cb58 --- /dev/null +++ b/freshrss/docker-compose.yml @@ -0,0 +1,23 @@ +services: + + freshrss: + image: freshrss/freshrss:latest + container_name: freshrss + hostname: freshrss + restart: unless-stopped + logging: + options: + max-size: 10m + volumes: + - data:/var/www/FreshRSS/data + - extensions:/var/www/FreshRSS/extensions + ports: + # If you want to open a port 8080 on the local machine: + - "3004:80" + environment: + TZ: Europe/Rome + CRON_MIN: '3,33' + +volumes: + data: + extensions: diff --git a/gitea/.env b/gitea/.env new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/gitea/.env @@ -0,0 +1 @@ + diff --git a/gitea/docker-compose.yml b/gitea/docker-compose.yml new file mode 100644 index 0000000..c59a794 --- /dev/null +++ b/gitea/docker-compose.yml @@ -0,0 +1,23 @@ +services: + gitea: + image: gitea/gitea:latest + env_file: .env + container_name: gitea + restart: unless-stopped + environment: + - USER_UID=102 + - USER_GID=109 + networks: + - gitea + volumes: + - ./gitea:/data + - /home/git/.ssh/:/data/git/.ssh + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + ports: + - "3006:3000" + - "2222:22" + +networks: + gitea: + external: false diff --git a/kuma/docker-compose.yml b/kuma/docker-compose.yml new file mode 100644 index 0000000..692562c --- /dev/null +++ b/kuma/docker-compose.yml @@ -0,0 +1,10 @@ +services: + uptime-kuma: + image: louislam/uptime-kuma:1 + container_name: uptime-kuma + volumes: + - ./uptime-kuma-data:/app/data + - /var/run/docker.sock:/var/run/docker.sock + ports: + - 3007:3001 + restart: always diff --git a/memos/docker-compose.yml b/memos/docker-compose.yml new file mode 100644 index 0000000..c01a40e --- /dev/null +++ b/memos/docker-compose.yml @@ -0,0 +1,8 @@ +services: + memos: + image: neosmemo/memos:stable + container_name: memos + volumes: + - .memos/:/var/opt/memos + ports: + - 3009:5230 diff --git a/ntfy/docker-compose.yml b/ntfy/docker-compose.yml new file mode 100644 index 0000000..cd1b4b9 --- /dev/null +++ b/ntfy/docker-compose.yml @@ -0,0 +1,14 @@ +services: + ntfy: + image: binwiederhier/ntfy:latest + container_name: ntfy + command: + - serve + environment: + - TZ=CET # optional: set desired timezone + volumes: + - /var/cache/ntfy:/var/cache/ntfy + - /etc/ntfy:/etc/ntfy + ports: + - 3003:80 + restart: unless-stopped diff --git a/vaultwarden/.env b/vaultwarden/.env new file mode 100644 index 0000000..2e683fe --- /dev/null +++ b/vaultwarden/.env @@ -0,0 +1,6 @@ +VAULT_DOMAN="" +VAULT_ADMIN_TOKEN="" +VAULT_SMTP_HOST="" +VAULT_SMTP_FROM="" +VAULT_SMTP_USER="" +VAULT_SMTP_PASSWD="" diff --git a/vaultwarden/docker-compose.yml b/vaultwarden/docker-compose.yml new file mode 100644 index 0000000..f58728f --- /dev/null +++ b/vaultwarden/docker-compose.yml @@ -0,0 +1,34 @@ +services: + vaultwarden: + image: vaultwarden/server:latest + env_file: .env + container_name: vaultwarden + restart: unless-stopped + ports: + - 3001:80 # Needed for the ACME HTTP-01 challenge. + - 3002:443 + environment: + DOMAIN: ${VAULT_DOMAN} + LOG_FILE: "/data/vaultwarden.log" + LOG_LEVEL: "warn" + EXTENDED_LOGGING: "true" + SHOW_PASSWORD_HINT: "false" + SENDS_ALLOWED: "true" + LOGIN_RATELIMIT_MAX_BURST: 10 + LOGIN_RATELIMIT_SECONDS: 60 + ADMIN_RATELIMIT_MAX_BURST: 10 + ADMIN_RATELIMIT_SECONDS: 60 + ADMIN_TOKEN: ${VAULT_ADMIN_TOKEN} + EMERGENCY_ACCESS_ALLOWED: "true" + SIGNUPS_ALLOWED: "false" + SIGNUPS_VERIFY: true + SIGNUPS_VERIFY_RESEND_TIME: 3600 + SIGNUPS_VERIFY_RESEND_LIMIT: 5 + SMTP_HOST: ${VAULT_SMTP_HOST} + SMTP_FROM: ${VAULT_SMTP_FROM} + SMTP_SECURITY: "starttls" + SMTP_PORT: 587 + SMTP_USERNAME: ${VAULT_SMTP_USER} + SMTP_PASSWORD: ${VAULT_SMTP_PASSWD} + volumes: + - ./vw-data:/data