v2.1.27 with Docker Compose
version: "3"
services:
teampass:
# image: teampass/teampass
image: teampass/teampass:2.1.27.36-d3rm-backup
restart: always
environment:
VIRTUAL_HOST: tp.example.com
networks:
- backend
ports:
- 59501:80
volumes:
- ./teampass:/var/www/html
db:
restart: always
image: mysql/mysql-server:5.7
environment:
MYSQL_ROOT_PASSWORD: teampass
MYSQL_DATABASE: teampass
MYSQL_PASSWORD: teampass
MYSQL_USER: teampass
volumes:
- ./db:/var/lib/mysql
networks:
- backend
networks:
backend:
v3.1.2 with Docker Compose
根据 TeamPass/docker-compose.yml 文件,进行修改。
version: "3"
services:
teampass-web:
image: dormancygrace/teampass:latest
restart: unless-stopped
environment:
# VIRTUAL_HOST: YOUR_HOSTNAME
# VIRTUAL_PORT: 80
# uncomment if certificate's file name doesn't match VIRTUAL_HOST
#CERT_NAME: YOUR_CERTIFICATE
volumes:
- ./teampass-html:/var/www/html
# uncomment ports to use without proxy
ports:
- 60080:80
networks:
- teampass-internal
- backend
depends_on:
- db
db:
restart: unless-stopped
image: yobasystems/alpine-mariadb:latest
environment:
MYSQL_ROOT_PASSWORD: YOUR_SUPERSECRET_PASSWORD
MYSQL_DATABASE: teampass
MYSQL_PASSWORD: YOUR_SECRET_PASSWORD
MYSQL_USER: teampass
volumes:
- ./teampass-db:/var/lib/mysql
networks:
- teampass-internal
networks:
frontend:
backend:
external: true
teampass-internal:
Username: admin
Password: <Your Password>
Q:当首次登陆时,页面返回 504 且 docker logs 并无相关错误?
A:在 pages/admin.php 中,其连接 www.google.com 来测试网络访问,通过 $connected = false; 关闭代码即可。
R:MFA disable – Teampass still need web acces (google) · Issue #4219 · nilsteampassnet/TeamPass