commit 0028e03bdd2c2a8dc03779a91c2ef099c584b5a3 Author: altescy Date: Fri Feb 19 14:08:08 2021 +0900 initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4c49bd7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.env diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..5a5795a --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,39 @@ +version: '3' + +services: + waitfordb: + image: dadarek/wait-for-dependencies + depends_on: + - postgres + command: postgres:5432 + + bitwarden: + image: bitwardenrs/server-postgresql:latest + depends_on: + - postgres + - waitfordb + restart: always + volumes: + - bw-data:/data + ports: + - 3011:80 + - 3012:3012 + environment: + WEBSOCKET_ENABLED: 'true' # Required to use websockets + SIGNUPS_ALLOWED: 'false' # set to false to disable signups + ADMIN_TOKEN: ${ADMIN_TOKEN} + DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres/${POSTGRES_DB} + + postgres: + image: postgres:12.3-alpine + restart: always + environment: + POSTGRES_USER: ${POSTGRES_USER} + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} + POSTGRES_DB: ${POSTGRES_DB} + volumes: + - postgres:/var/lib/postgresql/data + +volumes: + bw-data: + postgres: