mirror of
https://github.com/PAPAMICA/docker-compose-collection.git
synced 2026-03-18 21:30:41 +01:00
50 lines
1.7 KiB
YAML
50 lines
1.7 KiB
YAML
# Docker-compose provided by Mickael "PAPAMICA" Asseline
|
|
# Update : 10/05/2022
|
|
|
|
#& type: 3
|
|
#& title: Vaultwarden
|
|
#& description: Password manager
|
|
#& note: Website: <a href='https://github.com/dani-garcia/vaultwarden' target='_blank' rel='noopener'>Github.com</a>
|
|
#& categories: SelfHosted, PAPAMICA
|
|
#& platform: linux
|
|
#& logo: https://upload.wikimedia.org/wikipedia/commons/0/03/Bitwarden_Logo.png
|
|
|
|
#% SERVICE: Name of the service (No spaces or points)
|
|
#% DATA_LOCATION: data localization (Example: /apps/service)
|
|
#% URL: Service link (Example: service.papamica.fr or service.com)
|
|
#% NETWORK: Your Traefik network (Example: proxy)
|
|
#% SIGNUPS_ALLOWED: Autorize signup ? (True or False)
|
|
#% TIME_ZONE: Time zone (Example : Europe/Paris)
|
|
#% ADMIN_TOKEN: Admin token (For manage with url/admin)
|
|
|
|
# Work with Portainer
|
|
version: "2"
|
|
services:
|
|
# Bitwarden : https://bitwarden.com/
|
|
bitwarden:
|
|
image: vaultwarden/server:latest
|
|
container_name: $SERVICE
|
|
restart: always
|
|
volumes:
|
|
- $DATA_LOCATION/bw-data:/data
|
|
environment:
|
|
WEBSOCKET_ENABLED: 'true' # Required to use websockets
|
|
SIGNUPS_ALLOWED: '$SIGNUPS_ALLOWED' # set to false to disable signups
|
|
TZ: '$TIME_ZONE'
|
|
ADMIN_TOKEN: '$ADMIN_TOKEN'
|
|
ports:
|
|
- 3012:3012
|
|
networks:
|
|
- default
|
|
labels:
|
|
- "autoupdate=monitor" # https://github.com/PAPAMICA/container-updater
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.$SERVICE.entrypoints=https"
|
|
- "traefik.http.routers.$SERVICE.rule=Host(`$SERVICE.$NDD`)"
|
|
- "traefik.http.routers.$SERVICE.tls=true"
|
|
- "traefik.http.routers.$SERVICE.tls.certresolver=http"
|
|
- "traefik.docker.network=$NETWORK"
|
|
networks:
|
|
default:
|
|
external:
|
|
name: $NETWORK |