Advertisement
Guest User

Docker-Compose Postegres

a guest
Jun 21st, 2018
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.54 KB | None | 0 0
  1. version: '3'
  2.  
  3. services:
  4.   postgres:
  5.     container_name: postgres
  6.     image: library/postgres
  7.     expose:
  8.      - 5432
  9.     ports:
  10.      - '5432:5432'
  11.     environment:
  12.         POSTGRES_USER: postegres
  13.         POSTGRES_PASSWORD: postegres
  14.         POSTGRES_DB: postegres
  15.  
  16.   pgweb:
  17.     restart: always
  18.     image: sosedoff/pgweb
  19.     ports:
  20.      - '9191:8081'
  21.     links:
  22.      - postgres:postgres
  23.     environment:
  24.      - DATABASE_URL=postgres://postgres:postgres@postgres:5432/postgres?sslmode=disable
  25.     depends_on:
  26.      - postgres
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement