Hi…
Trying to install on Synology NAS
- I have Postgre Server running already fo another application
- I change the code to what i thougfht might work but it fails…
I am not sure also about the ADMIN TOKEN and the DATABASE USER PASSWORD …are they the same thing??
here is my code:
version: “3.9”
services:
db:
image: postgres
container_name: Vaultwarden-DB
hostname: vaultwarden-DB
mem_limit: 512m
cpu_shares: 768
security_opt:
- no-new-privileges:true
user: 1026:100
healthcheck:
test: [“CMD”, “pg_isready”, “-q”, “-d”, “vaultwarden_DB”, “-U”, “vaultwardenuser”]
timeout: 45s
interval: 10s
retries: 10
volumes:
- /volume1/docker/vaultwarden:/var/lib/postgresql/data:rw
environment:
POSTGRES_DB: vaultwarden_DB
POSTGRES_USER: vaultwardenuser
POSTGRES_PASSWORD: ***** MY PASSWORD ****
TZ: America/Chicago
restart: on-failure:5
vaultwarden:
image: vaultwarden/server:latest
container_name: Vaultwarden
hostname: vaultwarden
mem_limit: 256m
mem_reservation: 96m
cpu_shares: 1024
security_opt:
- no-new-privileges:true
user: 1026:100
ports:
- 4080:4020
volumes:
- /volume1/docker/vaultwarden/data:/data:rw
environment:
ROCKET_PORT: 4020
DATABASE_URL: postgresql://vaultwardenuser:*** MY PASSWORD***@192.168.0.3:5432/vaultwarden_DB
ADMIN_TOKEN: *** THE OTHER PASSWORD ****
DISABLE_ADMIN_TOKEN: false
DOMAIN: https://vaultwarden.XXX.XXX.XXX
SMTP_HOST: XXXXXXXXXXXXXX
SMTP_FROM: XXXXXXXXXXXXXXX
SMTP_PORT: 587
SMTP_SECURITY: starttls
SMTP_USERNAME: XXXXXXXXXXXXXXXXXX
SMTP_PASSWORD: XXXXXXXXXXXXXXXXXXXX
restart: on-failure:5
depends_on:
db:
condition: service_started