1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-02 00:22:50 -05:00

setup, build, and run scripts

This commit is contained in:
Kyle Spearrin
2017-08-07 11:24:16 -04:00
parent 4a25abade8
commit ee8b0a25a8
26 changed files with 257 additions and 33 deletions

View File

@ -0,0 +1,15 @@
version: '3'
services:
mssql:
volumes:
- /etc/bitwarden/mssql_data:/var/opt/mssql/data
api:
volumes:
- /etc/bitwarden/core:/etc/core
identity:
volumes:
- /etc/bitwarden/core:/etc/core
nginx:
volumes:
- /etc/bitwarden/letsencrypt:/etc/letsencrypt

View File

@ -0,0 +1,11 @@
version: '3'
services:
mssql:
volumes:
- mssql_data:/var/opt/mssql/data
nginx:
volumes:
- c:/bitwarden/letsencrypt:/etc/letsencrypt
volumes:
mssql_data:

View File

View File

@ -0,0 +1,17 @@
version: '3'
services:
mssql:
volumes:
- mssql_data:/var/opt/mssql/data
api:
volumes:
- c:/bitwarden/core:/etc/core
identity:
volumes:
- c:/bitwarden/core:/etc/core
nginx:
volumes:
- c:/bitwarden/letsencrypt:/etc/letsencrypt
volumes:
mssql_data:

View File

@ -5,8 +5,6 @@ services:
image: microsoft/mssql-server-linux
container_name: mssql
restart: always
volumes:
- mssql_data:/var/opt/mssql/data
env_file:
- mssql.env
- mssql.override.env
@ -14,33 +12,24 @@ services:
- '1433:1433'
api:
image: api
image: bitwarden/api
container_name: api
restart: always
build: ../src/Api
env_file:
- global.env
- global.override.env
identity:
image: identity
image: bitwarden/identity
container_name: identity
restart: always
build: ../src/Identity
env_file:
- global.env
- global.override.env
nginx:
image: nginx
image: bitwarden/nginx
container_name: nginx
restart: always
build: ../nginx
volumes:
- c:/bitwarden/letsencrypt:/etc/letsencrypt
ports:
- '80:80'
- '443:443'
volumes:
mssql_data:

View File

@ -3,4 +3,4 @@ globalSettings:selfHosted=true
globalSettings:baseServiceUri:vault=http://localhost
globalSettings:baseServiceUri:api=http://localhost/api
globalSettings:baseServiceUri:identity=http://localhost/identity
globalSettings:baseServiceUri:identityInternal=http://identity
globalSettings:baseServiceUri:internalIdentity=http://identity