Browse Source

initial commit

master
Yasuhiro Yamaguchi 5 years ago
commit
0028e03bdd
  1. 1
      .gitignore
  2. 39
      docker-compose.yml

1
.gitignore

@ -0,0 +1 @@
.env

39
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:
Loading…
Cancel
Save