Skip to content

Files

Latest commit

4a34473 · Feb 5, 2018

History

History

postgres

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Nov 1, 2017
Feb 5, 2018
Dec 7, 2016

postgres

docker-compose.yml

postgres:
  image: postgres:alpine
  ports:
    - "5432:5432"
  environment:
    - POSTGRES_USER=root
    - POSTGRES_PASSWORD=root
    - POSTGRES_DB=postgres
  restart: always

up and running

$ docker-compose up -d

$ docker-compose exec postgres psql -U root postgres
>>> SELECT CURRENT_TIMESTAMP;
              now
-------------------------------
 2016-12-07 01:44:29.872928+00
(1 row)

>>> \?
>>> \d
>>> \q