-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yml
37 lines (35 loc) · 1.27 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
version: '3'
# NETWORKS
networks:
proxy:
external: true
#SERVICES
services:
bitwarden:
image: vaultwarden/server:1.29.1-alpine
security_opt:
- no-new-privileges:true
networks:
- proxy
environment:
# After you setted up your user(s)
- "SIGNUPS_ALLOWED=false"
labels:
- traefik.enable=true
- traefik.docker.network=proxy
# Redirect to get the certs
- traefik.http.middlewares.redirect-https.redirectScheme.scheme=https
- traefik.http.middlewares.redirect-https.redirectScheme.permanent=true
# routers & services
- traefik.http.routers.bitwarden-ui-https.rule=Host(`sub.my-domain.tld`)
- traefik.http.routers.bitwarden-ui-https.entrypoints=https
- traefik.http.routers.bitwarden-ui-https.tls=true
- traefik.http.routers.bitwarden-ui-https.service=bitwarden-ui
- traefik.http.routers.bitwarden-ui-http.rule=Host(`sub.my-domain.tld`)
- traefik.http.routers.bitwarden-ui-http.entrypoints=http
- traefik.http.routers.bitwarden-ui-http.middlewares=redirect-https
- traefik.http.routers.bitwarden-ui-http.service=bitwarden-ui
- traefik.http.services.bitwarden-ui.loadbalancer.server.port=80
volumes:
# Stockage des fichiers Let's encrypt
- ./data/:/data