From cda37be691baf2ac2459131ff9b1676142dd89fb Mon Sep 17 00:00:00 2001 From: bartfaik04 Date: Sat, 17 May 2025 13:08:39 +0200 Subject: [PATCH] first commit with existing files --- cloudflare-ddns.yaml | 15 +++++ firstsetup.sh | 12 ++++ frigate.yaml | 37 +++++++++++ guacamole.yaml | 18 ++++++ home-assistant.yaml | 16 +++++ jellyfin.yaml | 28 +++++++++ mosquitto.yaml | 21 +++++++ nccron_deprecated/cron.sh | 15 +++++ nccron_deprecated/files/nccron.service | 7 +++ nccron_deprecated/files/nccron.timer | 10 +++ ncfiles/files.sh | 19 ++++++ ncfiles/files/ncfiles.service | 7 +++ ncfiles/files/ncfiles.timer | 10 +++ ncupdate_deprecated/files/00-default.conf | 16 +++++ ncupdate_deprecated/files/apache2.conf | 4 ++ ncupdate_deprecated/files/https.sh | 18 ++++++ ncupdate_deprecated/files/profile.sh | 2 + ncupdate_deprecated/update.sh | 24 ++++++++ nextcloud.yaml | 75 +++++++++++++++++++++++ nextcloud_old.yaml | 51 +++++++++++++++ nginx.yaml | 35 +++++++++++ onlyoffice.yaml | 23 +++++++ plex.yaml | 19 ++++++ qbithttps/files/https.sh | 15 +++++ qbithttps/update.sh | 21 +++++++ qbittorrent.yaml | 37 +++++++++++ qbittorrent_old.yaml | 25 ++++++++ vaultwarden.yaml | 24 ++++++++ website.yaml | 13 ++++ 29 files changed, 617 insertions(+) create mode 100644 cloudflare-ddns.yaml create mode 100644 firstsetup.sh create mode 100644 frigate.yaml create mode 100644 guacamole.yaml create mode 100644 home-assistant.yaml create mode 100644 jellyfin.yaml create mode 100644 mosquitto.yaml create mode 100644 nccron_deprecated/cron.sh create mode 100644 nccron_deprecated/files/nccron.service create mode 100644 nccron_deprecated/files/nccron.timer create mode 100644 ncfiles/files.sh create mode 100644 ncfiles/files/ncfiles.service create mode 100644 ncfiles/files/ncfiles.timer create mode 100644 ncupdate_deprecated/files/00-default.conf create mode 100644 ncupdate_deprecated/files/apache2.conf create mode 100644 ncupdate_deprecated/files/https.sh create mode 100644 ncupdate_deprecated/files/profile.sh create mode 100644 ncupdate_deprecated/update.sh create mode 100644 nextcloud.yaml create mode 100644 nextcloud_old.yaml create mode 100644 nginx.yaml create mode 100644 onlyoffice.yaml create mode 100644 plex.yaml create mode 100644 qbithttps/files/https.sh create mode 100644 qbithttps/update.sh create mode 100644 qbittorrent.yaml create mode 100644 qbittorrent_old.yaml create mode 100644 vaultwarden.yaml create mode 100644 website.yaml diff --git a/cloudflare-ddns.yaml b/cloudflare-ddns.yaml new file mode 100644 index 0000000..7126383 --- /dev/null +++ b/cloudflare-ddns.yaml @@ -0,0 +1,15 @@ +version: '2' +services: + + cloudflare-ddns: + image: oznu/cloudflare-ddns:latest + restart: always + container_name: cloudflare-ddns + network_mode: host + environment: + - API_KEY=apikey + #- SUBDOMAIN= + - ZONE=domain + - PROXIED=true + - PUID=1000 + - PGID=1000 diff --git a/firstsetup.sh b/firstsetup.sh new file mode 100644 index 0000000..fdddf89 --- /dev/null +++ b/firstsetup.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +sudo apt update + +sudo apt install docker* + +sudo docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v /docker/portainer:/data portainer/portainer-ce:latest + +sudo docker network create --subnet=172.20.0.0/16 --gateway=172.20.0.1 --ip-range=172.20.0.0/24 --opt com.docker.network.bridge.name=docker-frontend frontend + +sudo docker network create --internal --subnet=172.30.0.0/16 --gateway=172.30.0.1 --ip-range=172.30.0.0/24 --opt com.docker.network.bridge.name=docker-backend backend + diff --git a/frigate.yaml b/frigate.yaml new file mode 100644 index 0000000..0c25190 --- /dev/null +++ b/frigate.yaml @@ -0,0 +1,37 @@ +version: "3.9" +networks: + frontend: + external: true + + +services: + frigate: + container_name: frigate + privileged: true # this may not be necessary for all setups + restart: unless-stopped + image: ghcr.io/blakeblackshear/frigate:stable + shm_size: "64mb" # update for your cameras based on calculation above + devices: + #- /dev/bus/usb:/dev/bus/usb # Passes the USB Coral, needs to be modified for other versions + #- /dev/apex_0:/dev/apex_0 # Passes a PCIe Coral, follow driver instructions here https://coral.ai/docs/m2/get-started/#2a-on-linux + - /dev/dri/renderD128:/dev/dri/renderD128 # For intel hwaccel, needs to be updated for your hardware + volumes: + - /etc/localtime:/etc/localtime:ro + - /docker/frigate/config:/config + - /mnt/frigate:/media/frigate + - type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear + target: /tmp/cache + tmpfs: + size: 1000000000 + ports: + - "8971:8971" + #- "5080:5000" + - "8554:8554" # RTSP feeds + - "8555:8555/tcp" # WebRTC over tcp + - "8555:8555/udp" # WebRTC over udp + environment: + FRIGATE_RTSP_PASSWORD: "passwd" + networks: + frontend: + ipv4_address: 172.20.0.x + \ No newline at end of file diff --git a/guacamole.yaml b/guacamole.yaml new file mode 100644 index 0000000..ad2ca14 --- /dev/null +++ b/guacamole.yaml @@ -0,0 +1,18 @@ +version: "2" + +networks: + frontend: + external: true + +services: + guacamole: + image: jwetzell/guacamole + container_name: guacamole + volumes: + - /docker/guacamole:/config + ports: + # - :8080 + - 3389:3389 + networks: + - frontend + restart: always diff --git a/home-assistant.yaml b/home-assistant.yaml new file mode 100644 index 0000000..34e365f --- /dev/null +++ b/home-assistant.yaml @@ -0,0 +1,16 @@ +version: '3' +services: + homeassistant: + container_name: homeassistant + image: ghcr.io/home-assistant/home-assistant:stable + #group_add: + # - "109" + volumes: + - /docker/homeassistant:/config + - /etc/localtime:/etc/localtime:ro + - /run/dbus:/run/dbus:ro + restart: always + privileged: true + network_mode: host + #devices: + # - /dev/dri/renderD128:/dev/dri/renderD128 \ No newline at end of file diff --git a/jellyfin.yaml b/jellyfin.yaml new file mode 100644 index 0000000..01739ff --- /dev/null +++ b/jellyfin.yaml @@ -0,0 +1,28 @@ +--- +version: "2.1" + +services: + jellyfin: + image: lscr.io/linuxserver/jellyfin:latest + container_name: jellyfin + group_add: + - "109" #getent group render | cut -d: -f3 + environment: + - PUID=1000 + - PGID=1000 + - TZ=Europe/Budapest + - DOCKER_MODS=linuxserver/mods:jellyfin-opencl-intel + volumes: + - /docker/jellyfin:/config + - /path/to/films:/data/films + - /path/to/series:/data/series + ports: + - 8096:8096 + #- 8092:8920 #optional + - 7359:7359/udp #optional + - 1900:1900/udp #optional + restart: unless-stopped + network_mode: host + devices: + - /dev/dri/renderD128:/dev/dri/renderD128 + diff --git a/mosquitto.yaml b/mosquitto.yaml new file mode 100644 index 0000000..b064642 --- /dev/null +++ b/mosquitto.yaml @@ -0,0 +1,21 @@ +version: '3' + +networks: + frontend: + external: true + +services: + homeassistant: + container_name: mosquitto + image: eclipse-mosquitto:latest + volumes: + - /docker/mosquitto/config:/mosquitto/config/ + - /docker/mosquitto/data:/mosquitto/data + - /docker/mosquitto/log:/mosquitto/log + restart: always + ports: + - 1883:1883 + - 9001:9001 + networks: + frontend: + ipv4_address: \ No newline at end of file diff --git a/nccron_deprecated/cron.sh b/nccron_deprecated/cron.sh new file mode 100644 index 0000000..1097283 --- /dev/null +++ b/nccron_deprecated/cron.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +cd "$(dirname "$0")" + +echo -n "Container name: " + +read cont + +sudo cp ./files/nccron.service /etc/systemd/system/nccron.service +sudo cp ./files/nccron.timer /etc/systemd/system/nccron.timer + +sudo sed -i "s/%1%/$cont/g" /etc/systemd/system/nccron.service + +sudo systemctl daemon-reload +sudo systemctl enable --now nccron.timer diff --git a/nccron_deprecated/files/nccron.service b/nccron_deprecated/files/nccron.service new file mode 100644 index 0000000..2f1f346 --- /dev/null +++ b/nccron_deprecated/files/nccron.service @@ -0,0 +1,7 @@ +[Unit] +Description=Nextcloud cron.php job + +[Service] +User=root +ExecStart=/usr/bin/docker exec --user www-data %1% php /var/www/html/cron.php +KillMode=process diff --git a/nccron_deprecated/files/nccron.timer b/nccron_deprecated/files/nccron.timer new file mode 100644 index 0000000..ec24154 --- /dev/null +++ b/nccron_deprecated/files/nccron.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Run Nextcloud cron.php every 5 minutes + +[Timer] +OnBootSec=5min +OnUnitActiveSec=5min +Unit=nccron.service + +[Install] +WantedBy=timers.target diff --git a/ncfiles/files.sh b/ncfiles/files.sh new file mode 100644 index 0000000..cbb3ba2 --- /dev/null +++ b/ncfiles/files.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +cd "$(dirname "$0")" + +echo "Containers:" + +sudo docker ps --format '{{.Names}}' + +echo -n "Container name: " + +read cont + +sudo cp ./files/ncfiles.service /etc/systemd/system/ncfiles.service +sudo cp ./files/ncfiles.timer /etc/systemd/system/ncfiles.timer + +sudo sed -i "s/%1%/$cont/g" /etc/systemd/system/ncfiles.service + +sudo systemctl daemon-reload +sudo systemctl enable --now ncfiles.timer diff --git a/ncfiles/files/ncfiles.service b/ncfiles/files/ncfiles.service new file mode 100644 index 0000000..5be16fb --- /dev/null +++ b/ncfiles/files/ncfiles.service @@ -0,0 +1,7 @@ +[Unit] +Description=Nextcloud files scan + +[Service] +User=root +ExecStart=/usr/bin/docker exec --user www-data %1% /var/www/html/occ files:scan --all +KillMode=process diff --git a/ncfiles/files/ncfiles.timer b/ncfiles/files/ncfiles.timer new file mode 100644 index 0000000..f3fc789 --- /dev/null +++ b/ncfiles/files/ncfiles.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Scan Nextcloud files every 30 minutes + +[Timer] +OnBootSec=30min +OnUnitActiveSec=30min +Unit=ncfiles.service + +[Install] +WantedBy=timers.target diff --git a/ncupdate_deprecated/files/00-default.conf b/ncupdate_deprecated/files/00-default.conf new file mode 100644 index 0000000..bc31aca --- /dev/null +++ b/ncupdate_deprecated/files/00-default.conf @@ -0,0 +1,16 @@ + + ServerAdmin webmaster@localhost + + DocumentRoot /var/www/html + + ErrorLog ${APACHE_LOG_DIR}/error.log + + CustomLog ${APACHE_LOG_DIR}/access.log combined + + SSLEngine on + + SSLCertificateFile /etc/apache2/certs/apache.crt + + SSLCertificateKeyFile /etc/apache2/certs/apache.key + + \ No newline at end of file diff --git a/ncupdate_deprecated/files/apache2.conf b/ncupdate_deprecated/files/apache2.conf new file mode 100644 index 0000000..4c3b5d7 --- /dev/null +++ b/ncupdate_deprecated/files/apache2.conf @@ -0,0 +1,4 @@ + + + AllowOverride ALL + diff --git a/ncupdate_deprecated/files/https.sh b/ncupdate_deprecated/files/https.sh new file mode 100644 index 0000000..50a19f8 --- /dev/null +++ b/ncupdate_deprecated/files/https.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +cat profile.sh >> $HOME/.bashrc +apt update +apt install smbclient apache2 openssl nano vim -y +a2enmod ssl +a2enmod rewrite +cat /ncupdate/apache2.conf >> /etc/apache2/apache2.conf +mkdir /etc/apache2/certs +echo "" +echo "" +echo "Write the nextcloud's URL to the COMMON NAME!" +echo "Leave the other fields blank" +echo "" +echo -n "Press ENTER to countinue..." +read x +openssl req -new -newkey rsa:4096 -x509 -sha256 -days 365 -nodes -out /etc/apache2/certs/apache.crt -keyout /etc/apache2/certs/apache.key +cat /ncupdate/00-default.conf >> /etc/apache2/sites-enabled/000-default.conf diff --git a/ncupdate_deprecated/files/profile.sh b/ncupdate_deprecated/files/profile.sh new file mode 100644 index 0000000..2412057 --- /dev/null +++ b/ncupdate_deprecated/files/profile.sh @@ -0,0 +1,2 @@ +alias ls='ls --color="auto" --group-directory-first' +alias ll='ls -alh' diff --git a/ncupdate_deprecated/update.sh b/ncupdate_deprecated/update.sh new file mode 100644 index 0000000..06c1b49 --- /dev/null +++ b/ncupdate_deprecated/update.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +cd "$(dirname "$0")" + +echo "Containers: " + +sudo docker ps --format '{{.Names}}' + +echo "" + +echo -n "Container name: " + +read cont + +sudo docker exec -ti $cont mkdir /ncupdate/ + +sudo docker cp "./files/https.sh" $cont:/ncupdate/ +sudo docker cp "./files/00-default.conf" $cont:/ncupdate/ +sudo docker cp "./files/apache2.conf" $cont:/ncupdate/ +sudo docker cp "./files/profile.sh" $cont:/ncupdate/ + +sudo docker exec -ti $cont /bin/bash /ncupdate/https.sh + +sudo docker restart $cont diff --git a/nextcloud.yaml b/nextcloud.yaml new file mode 100644 index 0000000..0a15ea4 --- /dev/null +++ b/nextcloud.yaml @@ -0,0 +1,75 @@ +version: '3' + +networks: + frontend: + external: true + backend: + external: true + +services: + db: + container_name: nextcloud-db + image: postgres:alpine + restart: always + volumes: + - /docker/nextcloud-db:/var/lib/postgresql/data + environment: + - POSTGRES_PASSWORD= #REWRITE + - POSTGRES_DB= #REWRITE + - POSTGRES_USER= #REWRITE + networks: + - backend + + redis: + container_name: nextcloud-redis + image: redis:alpine + restart: always + networks: + - backend + + app: + container_name: nextcloud + image: nextcloud:stable-apache + restart: always + #ports: + # - 80:80 + # - 443:443 + volumes: + - /docker/nextcloud:/var/www/html + - /path/to/data:/var/www/html/data #REWRITE + environment: + - POSTGRES_HOST=nextcloud-db + - REDIS_HOST=nextcloud-redis + - POSTGRES_PASSWORD= #REWRITE + - POSTGRES_DB= #REWRITE + - POSTGRES_USER= #REWRITE + - PHP_MEMORY_LIMIT=1024M + - PHP_UPLOAD_LIMIT=0M + - NEXTCLOUD_TRUSTED_DOMAINS= #REWRITE + - TRUSTED_PROXIES= #REWRITE + - APACHE_BODY_LIMIT=0 + - OVERWRITEHOST= #REWRITE + - OVERWRITEPROTOCOL=https + - OVERWRITECLIURL=https:// #REWRITE + depends_on: + - db + - redis + networks: # THE ORDER IS NOT CHANGEABLE!! + - frontend + - backend + + + cron: + image: nextcloud:stable-apache + container_name: nextcloud-cron + restart: always + volumes: + - /docker/nextcloud:/var/www/html:z + - /path/to/data:/var/www/html/data:z #REWRITE + # NOTE: The `volumes` config of the `cron` and `app` containers must match + entrypoint: /cron.sh + depends_on: + - db + - redis + networks: + - backend \ No newline at end of file diff --git a/nextcloud_old.yaml b/nextcloud_old.yaml new file mode 100644 index 0000000..5136c00 --- /dev/null +++ b/nextcloud_old.yaml @@ -0,0 +1,51 @@ +version: '2' + +networks: + frontend: + # add this if the network is already existing! + external: true + backend: + external: true + +services: + db: + image: mariadb + restart: always + container_name: nextcloud-db + command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --innodb-file-per-table=1 --skip-innodb-read-only-compressed + volumes: + - /docker/nextcloud-db:/var/lib/mysql + environment: + - MYSQL_ROOT_PASSWORD=changeme2 + - MYSQL_PASSWORD=changeme1 + - MYSQL_DATABASE=nextcloud + - MYSQL_USER=nextcloud + networks: + - backend + + app: + image: nextcloud:stable-apache + restart: always + container_name: nextcloud + links: + - db + volumes: + - /docker/nextcloud:/var/www/html + - /path/to/data:/var/www/html/data #optional + #ports: + # - :80 + # - :443 + environment: + - MYSQL_PASSWORD=changeme1 + - MYSQL_DATABASE=nextcloud + - MYSQL_USER=nextcloud + - MYSQL_HOST=db + - PHP_MEMORY_LIMIT=3G + - PHP_UPLOAD_LIMIT=0M + - NEXTCLOUD_TRUSTED_DOMAINS= + - TZ=Europe/Budapest + networks: + - frontend + - backend + + diff --git a/nginx.yaml b/nginx.yaml new file mode 100644 index 0000000..33247a6 --- /dev/null +++ b/nginx.yaml @@ -0,0 +1,35 @@ +version: '3.8' + +networks: + frontend: + external: true + +services: + app: + image: 'jc21/nginx-proxy-manager:latest' + container_name: nginx + restart: unless-stopped + ports: + # These ports are in format : + - '80:80' # Public HTTP Port + - '443:443' # Public HTTPS Port + - '81:81' # Admin Web Port + + # Add any other Stream port you want to expose + # - '21:21' # FTP + + # Uncomment the next line if you uncomment anything in the section + # environment: + # Uncomment this if you want to change the location of + # the SQLite DB file within the container + # DB_SQLITE_FILE: "/data/database.sqlite" + + # Uncomment this if IPv6 is not enabled on your host + # DISABLE_IPV6: 'true' + + volumes: + - /docker/nginx/data:/data + - /docker/nginx/letsencrypt:/etc/letsencrypt + + networks: + - frontend diff --git a/onlyoffice.yaml b/onlyoffice.yaml new file mode 100644 index 0000000..b43fc62 --- /dev/null +++ b/onlyoffice.yaml @@ -0,0 +1,23 @@ +version: '3' + +networks: + frontend: + external: true + +services: + oodd: + image: onlyoffice/documentserver:latest + restart: always + container_name: onlyoffice + environment: + - JWT_ENABLED=true + - JWT_SECRET=secret + #ports: + #- :80 + volumes: + - /docker/onlyoffice/data:/var/www/onlyoffice/Data + - /docker/onlyoffice/lib:/var/lib/onlyoffice + - /docker/onlyoffice/logs:/var/log/onlyoffice + - /docker/onlyoffice/db:/var/lib/postgresql + networks: + - frontend diff --git a/plex.yaml b/plex.yaml new file mode 100644 index 0000000..ce79284 --- /dev/null +++ b/plex.yaml @@ -0,0 +1,19 @@ +version: "2.1" +services: + plex: + image: lscr.io/linuxserver/plex:latest + container_name: plex + network_mode: host + environment: + - PUID=1000 + - PGID=1000 + - TZ=Europe/Budapest + - VERSION=docker + - PLEX_CLAIM= #optional: https://plex.tv/claim + volumes: + - /docker/plex:/config + - /path/to/films/:/films + - /path/to/series/:/series + restart: always + devices: + - /dev/dri:/dev/dri diff --git a/qbithttps/files/https.sh b/qbithttps/files/https.sh new file mode 100644 index 0000000..910d791 --- /dev/null +++ b/qbithttps/files/https.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +mkdir /config/qBittorrent/cert/ +cd /config/qBittorrent/cert/ +echo "" +echo "" +echo "Write the nextcloud's URL to the COMMON NAME!" +echo "Leave the other fields blank" +echo "" +echo -n "Press ENTER to countinue..." +read x +openssl req -new -x509 -nodes -out server.crt -keyout server.key +sed -i "s/'WebUI\HTTPS\CertificatePath=.*'/'WebUI\HTTPS\CertificatePath=/config/qBittorrent/cert/server.crt'/g" /config/qBittorrent/qBittorrent.conf +sed -i "s/'WebUI\HTTPS\KeyPath=.*'/'WebUI\HTTPS\KeyPath=/config/qBittorrent/cert/server.key'/g" /config/qBittorrent/qBittorrent.conf +sed -i "s/'WebUI\HTTPS\Enabled=false'/'WebUI\HTTPS\Enabled=true'/g" /config/qBittorrent/qBittorrent.conf diff --git a/qbithttps/update.sh b/qbithttps/update.sh new file mode 100644 index 0000000..6e0f7b6 --- /dev/null +++ b/qbithttps/update.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +cd "$(dirname "$0")" + +echo "Containers: " + +sudo docker ps --format '{{.Names}}' + +echo "" + +echo -n "Container name: " + +read cont + +sudo docker exec -ti $cont mkdir /https/ + +sudo docker cp "./files/https.sh" $cont:/https/ + +sudo docker exec -ti $cont /bin/bash /https/https.sh + +sudo docker restart $cont diff --git a/qbittorrent.yaml b/qbittorrent.yaml new file mode 100644 index 0000000..db3c372 --- /dev/null +++ b/qbittorrent.yaml @@ -0,0 +1,37 @@ +networks: + frontend: + external: true + +services: + qbittorrent-nox: + # for debugging + #cap_add: + #- SYS_PTRACE + container_name: qbittorrent + environment: + #- PAGID=10000 + - PGID=1000 + - PUID=1000 + - QBT_EULA=accept + - QBT_VERSION=latest + - QBT_WEBUI_PORT=8080 + #- TZ=UTC + #- UMASK=022 + image: qbittorrentofficial/qbittorrent-nox:latest + ports: + # for bittorrent traffic + - 6881:6881/tcp + - 6881:6881/udp + # for WebUI + #- 8080:8080/tcp + read_only: true + stop_grace_period: 30m + restart: unless-stopped + tmpfs: + - /tmp + tty: true + volumes: + - /docker/qBittorrent/:/config + - /path/to/files:/files + networks: + - frontend \ No newline at end of file diff --git a/qbittorrent_old.yaml b/qbittorrent_old.yaml new file mode 100644 index 0000000..1ea5f6b --- /dev/null +++ b/qbittorrent_old.yaml @@ -0,0 +1,25 @@ +version: "2.1" +#networks: +# frontend: +# external: true + +services: + qbittorrent: + image: lscr.io/linuxserver/qbittorrent:latest + container_name: qbittorrent + network_mode: host + environment: + - PUID=1000 + - PGID=1000 + - TZ=Europe/Budapest + - WEBUI_PORT=8080 + volumes: + - /docker/qBittorrent:/config/qBittorrent + - /path/to/torrents:/torrents + #ports: + # - 8080:8080 + # - 6881:6881 + # - 6881:6881/udp + restart: always + #networks: + # - frontend diff --git a/vaultwarden.yaml b/vaultwarden.yaml new file mode 100644 index 0000000..bcc19ef --- /dev/null +++ b/vaultwarden.yaml @@ -0,0 +1,24 @@ +networks: + frontend: + external: true + +services: + app: + image: vaultwarden/server:latest + restart: always + container_name: vaultwarden + #ports: + # - 3012:3012 + # - :80 + # - :443 + volumes: + - /docker/vaultwarden/:/data/ + environment: + #- WEBSOCKET_ENABLED=true + - ADMIN_TOKEN=tempToken + - PUSH_ENABLED=true + - PUSH_INSTALLATION_ID= #https://bitwarden.com/host/ us server + - PUSH_INSTALLATION_KEY= + - PUSH_RELAY_BASE_URI=https://push.bitwarden.com + networks: + - frontend diff --git a/website.yaml b/website.yaml new file mode 100644 index 0000000..cbcd406 --- /dev/null +++ b/website.yaml @@ -0,0 +1,13 @@ +networks: + frontend: + external: true + +services: + website: + image: httpd:latest + container_name: website + volumes: + - /docker/website:/usr/local/apache2/htdocs + restart: always + networks: + - frontend