tangled
alpha
login
or
join now
mgabarda.com
/
docker-postgres
0
fork
atom
Docker images for postgres extended with management bash scripts.
0
fork
atom
overview
issues
pulls
pipelines
Update README.md
authored by
mgabarda.com
and committed by
GitHub
2 years ago
d38abae9
c3b637da
+5
-5
1 changed file
expand all
collapse all
unified
split
README.md
+5
-5
README.md
···
35
35
- ./.env
36
36
```
37
37
38
38
-
## Maintenance commands
38
38
+
## Maintenance commands
39
39
40
40
This images adds commands to the original PostgreSQL image for maintenance proposes.
41
41
···
43
43
44
44
Creates a backup of the database. Usage:
45
45
46
46
-
$ docker-compose -f <environment>.yml (exec |run --rm) postgres backup
46
46
+
$ docker compose -f <environment>.yml (exec |run --rm) postgres backup
47
47
48
48
### View backups
49
49
50
50
Views a list of all created backups of the database. Usage:
51
51
52
52
-
$ docker-compose -f <environment>.yml (exec |run --rm) postgres backups
52
52
+
$ docker compose -f <environment>.yml (exec |run --rm) postgres backups
53
53
54
54
### Creates a read only user
55
55
56
56
Creates a read only user. Usage:
57
57
58
58
-
$ docker-compose -f <environment>.yml (exec |run --rm) postgres createreaduser
58
58
+
$ docker compose -f <environment>.yml (exec |run --rm) postgres createreaduser
59
59
60
60
### Restore database from a backup
61
61
62
62
Restores the indicated database backup. Usage:
63
63
64
64
-
$ docker-compose -f <environment>.yml (exec |run --rm) postgres restore <1>
64
64
+
$ docker compose -f <environment>.yml (exec |run --rm) postgres restore <1>
65
65
66
66
Parameters:
67
67