Skip to content

joelcpinheiro/docker_teampass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Teampass Passwords Manager on Docker

Should you have one question for me, I know (why you don't used the teampass image present on docker hub?). Because I prefer use the last updated images and custom.

I suppose that you have installed docker and git on your environment, isn't?! So, let's go ahead!

  1. Clone this project on you Docker Environment;

  2. Extract .zip file named 2.1.27.16.zip and move files of this directory extracted(TeamPass-2.1.27.16) to teampass directory:

mv TeamPass-2.1.27.16/* teampass/
  1. Install docker-compose available on this link https://docs.docker.com/compose/install/;

  2. Access the directory of project downloaded to build Apache custom image on your docker environment and execute the command below:

docker build -t apptpass:latest .

OBS: Don't forget to update file docker-compose.yaml adjusting the password of MYSQL_ROOT_PASSWORD parameter and check wich if the IP of database container on extra_hosts parameter is correct after run docker-compose command. In this case the I had no another containers on this virtual machine.

  1. After Apache custom image builded, execute stack using docker-compose.yaml file with this command:
docker-compose -f docker-compose.yaml up -d
  1. After execute the docker-compose file, access the URL http://MyIP/teampass and set permissions on these directories on directory called teampass:
chmod -R 0777 teampass/includes/config &&
chmod -R 0777 teampass/includes/avatars &&
chmod -R 0777 teampass/includes/libraries/csrfp/libs &&
chmod -R 0777 teampass/includes/libraries/csrfp/log &&
chmod -R 0777 teampass/includes/libraries/csrfp/js &&
chmod -R 0777 teampass/backups &&
chmod -R 0777 teampass/files &&
chmod -R 0777 teampass/install &&
chmod -R 0777 teampass/includes &&
chmod -R 0777 teampass/upload
  1. Acessing the URL http://MyIP/teampass, you could see the Installations Steps of Teampass, proceed with installation;

  2. Check wich the IP of mariadb database container running this command:

docker exec -it apptpass cat /etc/hosts

He will be used on Installation steps.

  1. Access mariadb database container to create database and user to edit Database conection on Installation steps:
# Accessing database container
docker exec -it mariadb mysql
# Creating Database
create database teampass;
# Create user and set permissions
grant all privileges on teampass.* to 'usrteam'@'%' identified by 'yourpassword';
  1. After installed, follow instructions as remove install directory, disable maintenance mode, create roles, directories and users to access your teampass.

Take care of your passwords since today :)

About

Teampass Passwords Manager

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published