-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0e3594
commit b974622
Showing
3 changed files
with
119 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,44 @@ | ||
`P`assword `M`anager `L`ite | ||
=== | ||
|
||
[![Node.js CI](https://github.com/jaywcjlove/pml/actions/workflows/main.yml/badge.svg)](https://github.com/jaywcjlove/pml/actions/workflows/main.yml) | ||
[![Docker Image Version (latest by date)](https://img.shields.io/docker/v/wcjiang/pml)](https://hub.docker.com/r/wcjiang/pml) | ||
[![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/wcjiang/pml)](https://hub.docker.com/r/wcjiang/pml) | ||
[![Docker Pulls](https://img.shields.io/docker/pulls/wcjiang/pml)](https://hub.docker.com/r/wcjiang/pml) | ||
|
||
Password Manager Lite. | ||
|
||
## Docker | ||
|
||
Create a **`docker-compose.yml`** file and add the following configuration: | ||
|
||
```yml | ||
version: '3.8' | ||
services: | ||
postgres: | ||
image: postgres:latest | ||
environment: | ||
- POSTGRES_PASSWORD=wcjiang | ||
restart: always | ||
|
||
pml: | ||
image: pml:latest | ||
ports: | ||
- 3560:3002 | ||
environment: | ||
- POSTGRES_HOST=postgres | ||
- POSTGRES_USER=postgres | ||
- POSTGRES_PASSWORD=wcjiang | ||
- POSTGRES_DB=pml | ||
depends_on: | ||
- postgres | ||
``` | ||
Run the following command to **start** the container | ||
```bash | ||
docker-compose --project-name pml-server up -d | ||
docker-compose -p pml-server -f docker-compose.yml down --remove-orphans --rmi local -v | ||
# Or | ||
docker stack deploy -c docker-compose.yml pml-server | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
version: '3.8' | ||
services: | ||
postgres: | ||
image: postgres:latest | ||
# ports: | ||
# - 5432:5432 | ||
environment: | ||
- POSTGRES_PASSWORD=wcjiang | ||
restart: always | ||
|
||
pml: | ||
image: pml:latest | ||
ports: | ||
- 3560:3002 | ||
environment: | ||
- POSTGRES_HOST=postgres | ||
- POSTGRES_USER=postgres | ||
- POSTGRES_PASSWORD=wcjiang | ||
- POSTGRES_DB=pml | ||
depends_on: | ||
- postgres |