Advertisement
szabozoltan69

psql to see

Jul 3rd, 2018
417
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.61 KB | None | 0 0
  1. version: '2'
  2.  
  3. services:
  4.   nginx:
  5.     build: ./docker/nginx/
  6.     ports:
  7.      - 80:80
  8.     links:
  9.      - php7
  10.     volumes_from:
  11.      - app
  12.     depends_on:
  13.      - db
  14.  
  15.   php7:
  16.     build: ./docker/php/
  17.     expose:
  18.      - 9000
  19.     links:
  20.      - db:localhost
  21.     volumes_from:
  22.      - app
  23.     depends_on:
  24.      - db
  25.  
  26.   app:
  27.     image: php:7.2-fpm
  28.     volumes:
  29. ...
  30.  
  31.   db:
  32.     image: postgres:9.6
  33.     environment:
  34.       POSTGRES_PASSWORD: nothing
  35.       POSTGRES_USER: nothing
  36.       POSTGRES_DB: nothing
  37.     volumes:
  38.      - './.1/pg:/var/lib/postgresql/data'
  39.     ports:
  40.      - 5432:5432
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement