forked from ogenes/docker-bitwarden
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (45 loc) · 1.04 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
38
39
40
41
42
43
44
45
46
version: '3'
services:
nginx:
build: ./nginx
container_name: nginx
privileged: true
ports:
- 80:80
- 443:443
restart: always
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/conf.d/:/etc/nginx/conf.d/:ro
- ./nginx/ssl/:/etc/nginx/ssl/:ro
- ${WEB_ROOT_PATH}:/var/www/
- ${NGINX_LOG_PATH}:/var/log/nginx/
networks:
backend:
ipv4_address: ${NGINX_IP}
certbot:
image: certbot/certbot
container_name: certbot
volumes:
- ${WEB_ROOT_PATH}/certbot/:/var/www/certbot/:rw
- ./nginx/ssl/:/etc/letsencrypt/:rw
networks:
backend:
ipv4_address: ${CERTBOT_IP}
bitwarden:
image: docker.io/vaultwarden/server:latest
container_name: bitwarden
restart: always
volumes:
- ./data/bitwarden:/data
ports:
- 1080:80
environment:
SIGNUPS_ALLOWED: 'true'
WBE_VAULT_ENABLE: 'true'
networks:
backend:
ipv4_address: ${BITWARDEN_IP}
networks:
backend:
external: false