SHARE
TWEET

Untitled

a guest Jun 18th, 2019 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '3'
  2.  
  3. services:
  4.   db:
  5.     image: postgres:9.5.17-alpine
  6.     volumes:
  7.       - ./tmp/db:/var/lib/postgresql/data
  8.     networks:
  9.       - backend
  10.     environment:
  11.       POSTGRES_USER: /run/secrets/postgres_user
  12.       POSTGRES_PASSWORD: /run/secrets/postgres_password
  13.       POSTGRES_DB: /run/secrets/postgres_db
  14.   web:
  15.     build:
  16.       context: .
  17.       dockerfile: Dockerfile-nginx
  18.     image: nginx:alpine
  19.     volumes:
  20.       - ./:/usr/share/nginx/html
  21.     networks:
  22.       - backend
  23.     depends_on:
  24.       - app
  25.     ports:
  26.       - "3000:3000"
  27.   app:
  28.     build: .
  29.     volumes:
  30.       - /var/www/vuttr-api
  31.     networks:
  32.       - backend
  33.     environment:
  34.       DATABASE_URL: postgres://postgres@db
  35.       POSTGRES_USER: /run/secrets/postgres_user
  36.       POSTGRES_PASSWORD: /run/secrets/postgres_password
  37.       POSTGRES_DB: /run/secrets/postgres_db
  38.       RAILS_MASTER_KEY: /run/secrets/rails_master_key
  39.     ports:
  40.       - "3000"
  41.     depends_on:
  42.       - db
  43.  
  44. networks:
  45.   backend:
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