mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-30 09:16:58 +02:00
.. | ||
docker-compose.yml | ||
README.md |
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 postgres
>>> SELECT CURRENT_TIMESTAMP;
now
-------------------------------
2016-12-07 01:44:29.872928+00
(1 row)
>>> \q