Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Oct 11th, 2018 71 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. version: "3"
  2.  
  3. services:
  4.   api:
  5.     image: "stevelacy/imagehere"
  6.     command: ["/app/init"]
  7.     ports:
  8.       - 80
  9.     depends_on:
  10.       - migration
  11.     networks:
  12.       - api
  13.     environment:
  14.       POSTGRES_HOST: "postgres"
  15.       POSTGRES_USER: "postgres"
  16.       POSTGRES_DATABASE: "postgres"
  17.       POSTGRES_PASSWORD: "postgres"
  18.   migration:
  19.     image: "stevelacy/imagehere"
  20.     command: ["/app/init", "migrate"]
  21.     depends_on:
  22.       - postgres
  23.     networks:
  24.       - api
  25.     environment:
  26.       POSTGRES_HOST: "postgres"
  27.       POSTGRES_USER: "postgres"
  28.       POSTGRES_DATABASE: "postgres"
  29.       POSTGRES_PASSWORD: "postgres"
  30.  
  31.   postgres:
  32.     image: postgres:10
  33.     volumes:
  34.       - ./db-data:/var/lib/postgresql/data
  35.     networks:
  36.       - api
  37.     environment:
  38.       POSTGRES_PASSWORD: "postgres"
  39.  
  40.   nginx-proxy:
  41.     image: jwilder/nginx-proxy
  42.     ports:
  43.       - "80:80"
  44.     volumes:
  45.       - /var/run/docker.sock:/tmp/docker.sock:ro
  46.       # Custom nginx config added here:
  47.       - ./nginx.conf:/etc/nginx/conf.d/custom.conf:ro
  48.     networks:
  49.       - api
  50.  
  51.   # this is for static files from the HOST system.
  52.   nginx:
  53.     image: kyma/docker-nginx
  54.     command: ["nginx"]
  55.     ports:
  56.       - 80
  57.     volumes:
  58.       - ./html/:/var/www/
  59.     environment:
  60.       VIRTUAL_HOST: media.mydomain.com
  61.     networks:
  62.       - api
  63. networks:
  64.   api:
  65.  
  66. volumes:
  67.   db-data:
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