2018-08-31 05:06:40 +02:00
|
|
|
#
|
2018-08-31 15:16:01 +02:00
|
|
|
# Useful references:
|
|
|
|
# https://docs.docker.com/compose/compose-file/
|
|
|
|
# https://docs.docker.com/compose/reference/overview/#use--f-to-specify-name-and-path-of-one-or-more-compose-files
|
|
|
|
# https://docs.docker.com/compose/reference/envvars/
|
2018-08-30 17:35:44 +02:00
|
|
|
#
|
2018-08-31 05:06:40 +02:00
|
|
|
#########################################################################
|
|
|
|
# WARNING: This file is generated. Do not make changes to this file. #
|
2018-08-31 05:32:18 +02:00
|
|
|
# They will be overwritten on update. If you want to make additions to #
|
2018-08-31 05:06:40 +02:00
|
|
|
# this file, you can create a `docker-compose.override.yml` file in the #
|
2018-09-17 21:00:29 +02:00
|
|
|
# same directory and it will be merged into this file at runtime. You #
|
|
|
|
# can also manage various settings used in this file from the #
|
|
|
|
# ./bwdata/config.yml file for your installation. #
|
2018-08-31 05:06:40 +02:00
|
|
|
#########################################################################
|
2018-08-30 17:35:44 +02:00
|
|
|
|
2018-08-31 05:32:18 +02:00
|
|
|
version: '{{{ComposeVersion}}}'
|
2018-08-30 17:35:44 +02:00
|
|
|
|
|
|
|
services:
|
|
|
|
mssql:
|
|
|
|
image: bitwarden/mssql:{{{CoreVersion}}}
|
|
|
|
container_name: bitwarden-mssql
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
{{#if MssqlDataDockerVolume}}
|
2018-08-30 22:40:06 +02:00
|
|
|
- mssql_data:/var/opt/mssql/data
|
2018-08-30 17:35:44 +02:00
|
|
|
{{else}}
|
2018-08-30 22:40:06 +02:00
|
|
|
- ../mssql/data:/var/opt/mssql/data
|
2018-08-30 17:35:44 +02:00
|
|
|
{{/if}}
|
|
|
|
- ../logs/mssql:/var/opt/mssql/log
|
|
|
|
- ../mssql/backups:/etc/bitwarden/mssql/backups
|
|
|
|
env_file:
|
|
|
|
- mssql.env
|
|
|
|
- ../env/uid.env
|
|
|
|
- ../env/mssql.override.env
|
|
|
|
|
|
|
|
web:
|
|
|
|
image: bitwarden/web:{{{WebVersion}}}
|
|
|
|
container_name: bitwarden-web
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- ../web:/etc/bitwarden/web
|
|
|
|
env_file:
|
|
|
|
- global.env
|
|
|
|
- ../env/uid.env
|
|
|
|
|
|
|
|
attachments:
|
|
|
|
image: bitwarden/attachments:{{{CoreVersion}}}
|
|
|
|
container_name: bitwarden-attachments
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- ../core/attachments:/etc/bitwarden/core/attachments
|
|
|
|
env_file:
|
|
|
|
- global.env
|
|
|
|
- ../env/uid.env
|
|
|
|
|
|
|
|
api:
|
|
|
|
image: bitwarden/api:{{{CoreVersion}}}
|
|
|
|
container_name: bitwarden-api
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- ../core:/etc/bitwarden/core
|
|
|
|
- ../ca-certificates:/etc/bitwarden/ca-certificates
|
|
|
|
- ../logs/api:/etc/bitwarden/logs
|
|
|
|
env_file:
|
|
|
|
- global.env
|
|
|
|
- ../env/uid.env
|
|
|
|
- ../env/global.override.env
|
|
|
|
|
|
|
|
identity:
|
|
|
|
image: bitwarden/identity:{{{CoreVersion}}}
|
|
|
|
container_name: bitwarden-identity
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- ../identity:/etc/bitwarden/identity
|
|
|
|
- ../core:/etc/bitwarden/core
|
|
|
|
- ../ca-certificates:/etc/bitwarden/ca-certificates
|
|
|
|
- ../logs/identity:/etc/bitwarden/logs
|
|
|
|
env_file:
|
|
|
|
- global.env
|
|
|
|
- ../env/uid.env
|
|
|
|
- ../env/global.override.env
|
|
|
|
|
|
|
|
admin:
|
|
|
|
image: bitwarden/admin:{{{CoreVersion}}}
|
|
|
|
container_name: bitwarden-admin
|
|
|
|
restart: always
|
2019-03-25 18:21:05 +01:00
|
|
|
depends_on:
|
2019-03-25 19:48:06 +01:00
|
|
|
- mssql
|
2018-08-30 17:35:44 +02:00
|
|
|
volumes:
|
|
|
|
- ../core:/etc/bitwarden/core
|
|
|
|
- ../ca-certificates:/etc/bitwarden/ca-certificates
|
|
|
|
- ../logs/admin:/etc/bitwarden/logs
|
|
|
|
env_file:
|
|
|
|
- global.env
|
|
|
|
- ../env/uid.env
|
|
|
|
- ../env/global.override.env
|
|
|
|
|
|
|
|
icons:
|
|
|
|
image: bitwarden/icons:{{{CoreVersion}}}
|
|
|
|
container_name: bitwarden-icons
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- ../ca-certificates:/etc/bitwarden/ca-certificates
|
|
|
|
- ../logs/icons:/etc/bitwarden/logs
|
|
|
|
env_file:
|
|
|
|
- global.env
|
|
|
|
- ../env/uid.env
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
image: bitwarden/notifications:{{{CoreVersion}}}
|
|
|
|
container_name: bitwarden-notifications
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- ../ca-certificates:/etc/bitwarden/ca-certificates
|
|
|
|
- ../logs/notifications:/etc/bitwarden/logs
|
|
|
|
env_file:
|
|
|
|
- global.env
|
|
|
|
- ../env/uid.env
|
|
|
|
- ../env/global.override.env
|
|
|
|
|
2019-07-09 20:49:34 +02:00
|
|
|
events:
|
|
|
|
image: bitwarden/events:{{{CoreVersion}}}
|
|
|
|
container_name: bitwarden-events
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- ../ca-certificates:/etc/bitwarden/ca-certificates
|
|
|
|
- ../logs/events:/etc/bitwarden/logs
|
|
|
|
env_file:
|
|
|
|
- global.env
|
|
|
|
- ../env/uid.env
|
|
|
|
- ../env/global.override.env
|
|
|
|
|
2018-08-30 17:35:44 +02:00
|
|
|
nginx:
|
|
|
|
image: bitwarden/nginx:{{{CoreVersion}}}
|
|
|
|
container_name: bitwarden-nginx
|
|
|
|
restart: always
|
2019-03-25 14:23:50 +01:00
|
|
|
depends_on:
|
2019-03-25 19:48:06 +01:00
|
|
|
- web
|
|
|
|
- admin
|
|
|
|
- api
|
|
|
|
- identity
|
2018-09-26 22:53:37 +02:00
|
|
|
{{#if HasPort}}
|
2018-08-30 17:35:44 +02:00
|
|
|
ports:
|
|
|
|
{{#if HttpPort}}
|
|
|
|
- '{{{HttpPort}}}:8080'
|
|
|
|
{{/if}}
|
|
|
|
{{#if HttpsPort}}
|
|
|
|
- '{{{HttpsPort}}}:8443'
|
2018-09-26 22:53:37 +02:00
|
|
|
{{/if}}
|
2018-08-30 17:35:44 +02:00
|
|
|
{{/if}}
|
|
|
|
volumes:
|
|
|
|
- ../nginx:/etc/bitwarden/nginx
|
|
|
|
- ../letsencrypt:/etc/letsencrypt
|
|
|
|
- ../ssl:/etc/ssl
|
|
|
|
- ../logs/nginx:/var/log/nginx
|
|
|
|
env_file:
|
|
|
|
- ../env/uid.env
|
|
|
|
{{#if MssqlDataDockerVolume}}
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
mssql_data:
|
|
|
|
{{/if}}
|