|
|
Ligne 1 : |
Ligne 1 : |
| version: "3.9"
| | @VirtualHost *:80@ |
| services:
| | DocumentRoot "C:/xampp/htdocs/glpi/public" |
| db:
| | Alias "/glpi" "C:/xampp/htdocs/glpi/public" |
| image: mariadb:11.3-jammy | | ServerName AssistanceSI.Pme.lan |
| container_name: Bitwarden-DB
| | @Directory "C:/xampp/htdocs/glpi/public"@ |
| hostname: bitwarden-db
| | Require all granted |
| security_opt:
| | RewriteEngine On |
| - no-new-privileges:true
| | RewriteCond %{REQUEST_FILENAME} !-f |
| environment:
| | RewriteRule ^(.*)$ index.php [QSA,L] |
| - TZ=Europe/Bucharest
| | @/Directory@ |
| - MYSQL_ROOT_PASSWORD=rootpass
| | @/VirtualHost@ |
| - MYSQL_DATABASE=bitwarden_vault
| |
| - MYSQL_USER=bitwardenuser
| |
| - MYSQL_PASSWORD=bitwardenpass
| |
| volumes:
| |
| - /volume1/docker/bitwarden/db:/var/lib/mysql:rw
| |
| - /volume1/docker/bitwarden/db:/etc/mysql/conf.d:rw
| |
| restart: always
| |
| | |
| bitwarden:
| |
| image: bitwarden/self-host
| |
| container_name: Bitwarden
| |
| hostname: bitwarden
| |
| security_opt:
| |
| - no-new-privileges:true
| |
| healthcheck:
| |
| test: curl -fsSo - http://localhost:8080
| |
| environment: | |
| - BW_DOMAIN=bitwarden.yourname.synology.me
| |
| - BW_DB_PROVIDER=mysql
| |
| - BW_DB_SERVER=bitwarden-db
| |
| - BW_DB_DATABASE=bitwarden_vault
| |
| - BW_DB_USERNAME=bitwardenuser
| |
| - BW_DB_PASSWORD=bitwardenpass
| |
| - BW_INSTALLATION_ID=Your-Own-Bitwarden-Installation-ID
| |
| - BW_INSTALLATION_KEY=Your-Own-Bitwarden-Installation-KEY
| |
| - UID=1026
| |
| - GID=100
| |
| - BW_ENABLE_ADMIN=true
| |
| - globalSettings__logDirectory=/etc/bitwarden/logs
| |
| - adminSettings__admins=Your-own-gmail-address
| |
| - globalSettings__disableUserRegistration=false
| |
| - globalSettings__mail__replyToEmail=Your-own-gmail-address
| |
| - globalSettings__mail__smtp__host=smtp.gmail.com
| |
| - globalSettings__mail__smtp__ssl=false
| |
| - globalSettings__mail__smtp__port=587
| |
| - globalSettings__mail__smtp__username=Your-own-gmail-address
| |
| - globalSettings__mail__smtp__password=Your-own-app-password
| |
| ports: | |
| - 9890:8080
| |
| volumes:
| |
| - /volume1/docker/bitwarden/data:/etc/bitwarden
| |
| - /volume1/docker/bitwarden/logs:/var/log/bitwarden
| |
| restart: always
| |
| depends_on:
| |
| db:
| |
| condition: service_started | |
| | |
| | |
| | |
| version: "3.8"
| |
| | |
| services:
| |
| bitwarden:
| |
| depends_on:
| |
| - db
| |
| env_file:
| |
| - settings.env
| |
| image: ${REGISTRY:-bitwarden}/self-host:${TAG:-beta}
| |
| restart: always
| |
| ports:
| |
| - "80:8080"
| |
| - "443:8443"
| |
| volumes: | |
| - bitwarden:/etc/bitwarden
| |
| - logs:/var/log/bitwarden
| |
| | |
| # MariaDB Example
| |
| db:
| |
| environment:
| |
| MARIADB_USER: "bitwarden"
| |
| MARIADB_PASSWORD: "super_strong_password"
| |
| MARIADB_DATABASE: "bitwarden_vault"
| |
| MARIADB_RANDOM_ROOT_PASSWORD: "true"
| |
| image: mariadb:10
| |
| restart: always
| |
| volumes:
| |
| - data:/var/lib/mysql
| |
@VirtualHost *:80@
DocumentRoot "C:/xampp/htdocs/glpi/public"
Alias "/glpi" "C:/xampp/htdocs/glpi/public"
ServerName AssistanceSI.Pme.lan
@Directory "C:/xampp/htdocs/glpi/public"@
Require all granted
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
@/Directory@
@/VirtualHost@