Docker-compose.yml PostgreSQL

From wikieduonline
Revision as of 05:29, 3 February 2020 by Welcome (talk | contribs)
Jump to navigation Jump to search

https://hub.docker.com/_/postgres?tab=description

Basic example

# Use postgres/example user/password credentials
version: '3.1'

services:

  db:
    image: postgres
    restart: always
    environment:
      POSTGRES_PASSWORD: example

  adminer:
    image: adminer
    restart: always
    ports:
      - 8080:8080

Advanced example

# Use postgres/example user/password credentials
version: '3.1'

services:

  db:
    image: postgres
    restart: always
    environment:
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: example

  adminer:
    image: adminer
    restart: always
    ports:
      - 8080:8080

See also

Advertising: