Originally created by @BobWs on GitHub (Aug 28, 2020).
How do I set depends_on via CLi (Command line?
I have the same error every morning when my NAS startup. I guess Bitwarden startup faster then Mariadb, So I was wondering how to set the depends-on command via CLi because I don't use compose at the moment (still learning;-)
This is how I setup my Bitwarden-mysql container and keep it up to date:
Hello @misterbit-pro, i got it working with the docker-compose.yml file i put under this message. I believe you got >your error because bitwarden_rs is started up before mysql is fully started. Using depends_on forces docker-compose to boot up mysql first.
Please also remember the first time you want to register yourself you have to start the container with >SIGNUPS_ALLOWED: 'true'
Originally created by @BobWs on GitHub (Aug 28, 2020).
How do I set `depends_on` via CLi (Command line?
I have the same error every morning when my NAS startup. I guess Bitwarden startup faster then Mariadb, So I was wondering how to set the depends-on command via CLi because I don't use compose at the moment (still learning;-)
This is how I setup my Bitwarden-mysql container and keep it up to date:
```
docker pull bitwardenrs/server-mysql:latest
docker stop bitwarden
docker rm bitwarden
docker run -d \
--name bitwarden \
-v /volume1/docker/bitwarden/data:/data/ \
-v /volume1/docker/ssl:/ssl/ \
-v /etc/localtime:/etc/localtime:ro \
-v /etc/TZ:/etc/timezone:ro \
--hostname='bitwarden' \
-p 44300:80 \
-p 3012:3012 \
--env-file /volume1/documents/scripts/bitwarden/mysql/update/bitwarden.env \
--link mariadb:mysql \
--restart='always' bitwardenrs/server-mysql:latest
```
>Hello @misterbit-pro, i got it working with the ```docker-compose.yml``` file i put under this message. I believe you got >your error because bitwarden_rs is started up before mysql is fully started. Using [```depends_on```](https://docs.docker.com/compose/compose-file/#depends_on) forces docker-compose to boot up mysql first.
>
>Please also remember the first time you want to register yourself you have to start the container with >```SIGNUPS_ALLOWED: 'true' ```
>
>Take care!
>Dennis
>
>```
>version: '3'
>
>services:
> mysql:
> container_name: bitwarden_rs-mysql
> image: mysql:5.7
> restart: always
> volumes:
> - mysql-vol-1:/var/lib/mysql/
> environment:
> MYSQL_ROOT_PASSWORD: 'roottest1234'
> MYSQL_DATABASE: 'bitwarden'
> MYSQL_USER: 'bitwarden'
> MYSQL_PASSWORD: 'test1234'
> bitwarden-server:
> image: bitwardenrs/server-mysql
> depends_on:
> - mysql
> ports:
> - 8084:80
> volumes:
> - /opt/bitwarden_rs/data:/data
> environment:
> WEBSOCKET_ENABLED: 'true'
> SIGNUPS_ALLOWED: 'false'
> DOMAIN: 'bitwarden.misterbit.pro'
> DATABASE_URL: 'mysql://bitwarden:test1234@bitwarden_rs-mysql/bitwarden'
> RUST_BACKTRACE: 1
> ENABLE_DB_WAL: 'false'
>
>volumes:
> mysql-vol-1:
> driver: local
>```
>
_Originally posted by @dennisgerding in https://github.com/dani-garcia/bitwarden_rs/issues/855#issuecomment-589750900_
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @BobWs on GitHub (Aug 28, 2020).
How do I set
depends_onvia CLi (Command line?I have the same error every morning when my NAS startup. I guess Bitwarden startup faster then Mariadb, So I was wondering how to set the depends-on command via CLi because I don't use compose at the moment (still learning;-)
This is how I setup my Bitwarden-mysql container and keep it up to date:
Originally posted by @dennisgerding in https://github.com/dani-garcia/bitwarden_rs/issues/855#issuecomment-589750900