mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 00:22:50 -05:00
docker support
This commit is contained in:
14
docker/Docker.dcproj
Normal file
14
docker/Docker.dcproj
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" Sdk="Microsoft.Docker.Sdk">
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectVersion>2.0</ProjectVersion>
|
||||
<DockerTargetOS>Linux</DockerTargetOS>
|
||||
<ProjectGuid>026ddb58-f0db-4089-8168-83015af785ae</ProjectGuid>
|
||||
<DockerLaunchBrowser>True</DockerLaunchBrowser>
|
||||
<DockerServiceUrl>http://localhost:{ServicePort}</DockerServiceUrl>
|
||||
<DockerServiceName>api</DockerServiceName>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<None Include="docker-compose.yml" />
|
||||
</ItemGroup>
|
||||
</Project>
|
46
docker/docker-compose.yml
Normal file
46
docker/docker-compose.yml
Normal file
@ -0,0 +1,46 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
mssql:
|
||||
image: microsoft/mssql-server-linux
|
||||
container_name: mssql
|
||||
restart: always
|
||||
volumes:
|
||||
- mssql_data:/var/opt/mssql/data
|
||||
env_file:
|
||||
- mssql.env
|
||||
- mssql.override.env
|
||||
ports:
|
||||
- '1433:1433'
|
||||
|
||||
api:
|
||||
image: api
|
||||
container_name: api
|
||||
restart: always
|
||||
build: ../src/Api
|
||||
env_file:
|
||||
- global.env
|
||||
- global.override.env
|
||||
|
||||
identity:
|
||||
image: identity
|
||||
container_name: identity
|
||||
restart: always
|
||||
build: ../src/Identity
|
||||
env_file:
|
||||
- global.env
|
||||
- global.override.env
|
||||
|
||||
nginx:
|
||||
image: nginx
|
||||
container_name: nginx
|
||||
restart: always
|
||||
build: ../nginx
|
||||
volumes:
|
||||
- c:/bitwarden/letsencrypt:/etc/letsencrypt
|
||||
ports:
|
||||
- '80:80'
|
||||
- '443:443'
|
||||
|
||||
volumes:
|
||||
mssql_data:
|
6
docker/global.env
Normal file
6
docker/global.env
Normal file
@ -0,0 +1,6 @@
|
||||
ASPNETCORE_ENVIRONMENT=Production
|
||||
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
|
3
docker/mssql.env
Normal file
3
docker/mssql.env
Normal file
@ -0,0 +1,3 @@
|
||||
ACCEPT_EULA=Y
|
||||
MSSQL_PID=Express
|
||||
SA_PASSWORD=SECRET
|
Reference in New Issue
Block a user