Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dereknguyen269/slackapp-postgresql-server

Docker PostgresSQL server & Auto Deploy with Capistrano :rocket:
https://github.com/dereknguyen269/slackapp-postgresql-server

autodeploy docker docker-image postgresql

Last synced: 18 days ago
JSON representation

Docker PostgresSQL server & Auto Deploy with Capistrano :rocket:

Awesome Lists containing this project

README

        

# Slackapp postgresql server

- [SlackApp](https://www.slackapp.xyz)

---

## Simple

Youn setup `PostgresSQL server with Docker` step by step with resource: [Dockerize PostgreSQL](https://docs.docker.com/engine/examples/postgresql_service/).

After setup successfully.

**Conection**

First, run `docker ps`

```
$ docker ps

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5e24362f27f6 eg_postgresql:latest /usr/lib/postgresql/ About an hour ago Up About an hour 0.0.0.0:49153->5432/tcp pg_test
```

We see PORT : **49157**

Conection setup:

- IP adress: your server IP
- Port: 49157
- user: docker
- pass: docker

Note: Wee need port **49157** to `security group` if you using **AWS EC2**

**Tab Inbound** :

Type | Protocol | Port range | Source
-----|----------|------------|-------
Custom TCP Rule | TCP | 49157 | ::/0
Custom TCP Rule | TCP | 49157 | 0.0.0.0/0

**Stop docker image:**

```
docker stop image-name
```

## Custom

Read at Wiki [Custom config with Dockerfile](https://github.com/minhquan4080/slackapp-postgresql-server/wiki/Custom-config-with-Dockerfile)

Look Good! Now, you can use it to hosting dabase for your application :smile:.