Advertisement
PostPollux

omnidb docker-compose

Feb 21st, 2019
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.98 KB | None | 0 0
  1. version: '2.4'
  2.  
  3. networks:
  4.   proxy:
  5.     external:
  6.       name: proxy
  7.  
  8.   omnidb:
  9.     name: omnidb
  10.  
  11.   internal:
  12.  
  13. volumes:
  14.   omnidb_config:
  15.  
  16. services:
  17.   omnidb:
  18.     image: postpollux/omnidb:${OMNIDB_VERSION}
  19.  
  20.     networks:
  21.      - internal
  22.       - omnidb
  23.  
  24.     restart: always
  25.  
  26.     environment:
  27.       - EXTERNAL_WEBSOCKET_PORT
  28.  
  29.     volumes:
  30.       - omnidb_config:/etc/omnidb
  31.  
  32.     expose:
  33.      - 8080
  34.       - 25482
  35.  
  36.   # additional nginx reverse proxy to correctly forward ws (websocket) requests
  37.   nginx:
  38.     image: nginx:${NGINX_VERSION}
  39.  
  40.     networks:
  41.      - internal
  42.       - proxy
  43.  
  44.     restart: always
  45.  
  46.     volumes:
  47.      - ./omnidb-nginx.conf:/etc/nginx/conf.d/default.conf:ro
  48.  
  49.     depends_on:
  50.      - omnidb
  51.  
  52.     environment:
  53.      # variables for reverse proxy and ssl companion
  54.       - VIRTUAL_HOST
  55.       - VIRTUAL_PORT
  56.       - LETSENCRYPT_HOST=${VIRTUAL_HOST}
  57.       - LETSENCRYPT_EMAIL
  58.       - VIRTUAL_PROTO
  59.  
  60.     expose:
  61.      - 80
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement