bitwarden example

29. elokuuta 2022 | 22 näyttökertaa

version: '3.3'

services:

  mariadb:
    image: mariadb:10.6
    volumes:
      - './db:/var/lib/mysql'
    restart: unless-stopped
    container_name: vaultwarden-database
    environment:
      MARIADB_RANDOM_ROOT_PASSWORD: absolutely 
      MARIADB_DATABASE: vaultwarden
      MARIADB_USER: vaultwarden
      MARIADB_PASSWORD: password

  mysql-backup:
    restart: always
    links:
      - mariadb
    environment:
      - DB_DUMP_FREQ=60
      - DB_DUMP_TARGET=/backup
      - DB_SERVER=mariadb
      - DB_USER=vaultwarden
      - DB_PASS=password
    volumes:
      - './backup:/backup'
    image: databack/mysql-backup

  vaultwarden:
    container_name: vaultwarden
    links:
      - mariadb
    volumes:
      - './vw-data/:/data/'
    image: 'vaultwarden/server:latest'
    restart: unless-stopped
    environment:
      - DATABASE_URL=mysql://vaultwarden:password@mariadb:3306/vaultwarden
    ports:
      - '8000:80'