Skip to content

Commit

Permalink
postgresql
Browse files Browse the repository at this point in the history
  • Loading branch information
szabgab committed Jul 29, 2020
1 parent aae8569 commit 9580821
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions docker/docker.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"python.md",
"perl.md",
"networking.md",
"postgresql.md",
"appendix.md"
]
}
15 changes: 15 additions & 0 deletions docker/postgresql.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# PostgreSQL
{id: docker-postgresql}

## Run PostgreSQL in Docker
{id: run-postgresql-in-docker}

```
docker run --name pg1 -e POSTGRES_PASSWORD=secret -d postgres
```

```
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
8bfa343f4f3e postgres "docker-entrypoint.s…" About a minute ago Up About a minute 5432/tcp pg1
```

0 comments on commit 9580821

Please sign in to comment.