SHARE
TWEET

Untitled

a guest Dec 13th, 2016 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # docker-compose up -d
  2.  
  3. ## app
  4. sharif-judge:
  5.   #build: .
  6.   image: liuyang1204/docker-sharif-judge
  7.   environment:
  8.     DB_DRIVER: postgre
  9.     DB_HOST: postgres
  10.     DB_USER: postgres
  11.     DB_PASS: postgres
  12.     DB_NAME: postgres
  13.   ports:
  14.     - "8080:80"
  15.   links:
  16.     - postgres:postgres
  17.   container_name: sharif-judge
  18.  
  19. ## DB
  20. postgres:
  21.   image: postgres
  22.   environment:
  23.     POSTGRES_USER: postgres
  24.     POSTGRES_PASSWORD: postgres
  25.     POSTGRES_DB: postgres
  26.   ports:
  27.     - "5432:5432"
  28.   container_name: postgres-db
  29.   volumes_from:
  30.     - postgres-data
  31.  
  32. ## data
  33. postgres-data:
  34.   image: busybox
  35.   volumes:
  36.       - /var/lib/postgresql/data
  37.   container_name: postgres-datastore
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top