# Bitwarden\_rs with mysql remote server

**URL:** <https://vaultwarden.discourse.group/t/bitwarden-rs-with-mysql-remote-server/821>\
**Category:** Help\
**Created:** [April 14, 2021, 1:45am UTC](https://vaultwarden.discourse.group/t/bitwarden-rs-with-mysql-remote-server/821 "2021-04-14T01:45:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![masteryoda](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@masteryoda](https://vaultwarden.discourse.group/u/masteryoda)\
**Post date:** [April 14, 2021, 1:45am UTC](https://vaultwarden.discourse.group/t/bitwarden-rs-with-mysql-remote-server/821/1 "2021-04-14T01:45:29Z")

</div>

I am very new to this and i need help in using mysql backend for bitwarden\_rs instead of sqlite

I have bitwarden\_rs running on a docker with docker compose. ( i tested it with sqlite and it works just fine. i want to install afresh with mysql db)

I have a mariadb server running on another server (not docker).

How should my docker compose be done? this is what i have now with sqlite & it works.

```
# bitwarden
version: '3'

services:
 bitwarden:
  image: bitwardenrs/server:latest
  container_name: bitwarden
  restart: always
  volumes:
      - /opt/bitwarden/data:/data/
  ports:
    - 8088:80
    - 3012:3012
  environment:
    LOG_FILE: '/opt/bitwarden/bitwarden.log'
    LOG_LEVEL: 'debug'
    EXTENDED_LOGGING: 'true'
    WEB_VAULT_ENABLED: 'true'
    WEBSOCKET_ENABLED: 'true'
    WEBSOCKET_PORT: '3012'
    ADMIN_TOKEN: 'XXXXXXXXXXXXXXXXXX'
    SIGNUPS_ALLOWED: 'true'

```

Do i just add this line under environment variables to make it work?

PS: I’m able to connect to the mysql db from the docker VM via mysql

---

<div class="post-metadata">

**Author:** ![lalaw](https://avatars.discourse-cdn.com/v4/letter/l/ec9cab/32.png) [@lalaw](https://vaultwarden.discourse.group/u/lalaw)\
**Post date:** [April 16, 2021, 6:02am UTC](https://vaultwarden.discourse.group/t/bitwarden-rs-with-mysql-remote-server/821/2 "2021-04-16T06:02:41Z")

</div>

Have you looked here:

> **[dani-garcia/bitwarden\_rs](https://github.com/dani-garcia/bitwarden_rs/wiki/Using-the-MariaDB-(MySQL)-Backend)**
>
> Using-the-MariaDB-(MySQL)-Backend
