Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2.4'
- networks:
- proxy:
- external:
- name: proxy
- omnidb:
- name: omnidb
- internal:
- volumes:
- omnidb_config:
- services:
- omnidb:
- image: postpollux/omnidb:${OMNIDB_VERSION}
- networks:
- - internal
- - omnidb
- restart: always
- environment:
- - EXTERNAL_WEBSOCKET_PORT
- volumes:
- - omnidb_config:/etc/omnidb
- expose:
- - 8080
- - 25482
- # additional nginx reverse proxy to correctly forward ws (websocket) requests
- nginx:
- image: nginx:${NGINX_VERSION}
- networks:
- - internal
- - proxy
- restart: always
- volumes:
- - ./omnidb-nginx.conf:/etc/nginx/conf.d/default.conf:ro
- depends_on:
- - omnidb
- environment:
- # variables for reverse proxy and ssl companion
- - VIRTUAL_HOST
- - VIRTUAL_PORT
- - LETSENCRYPT_HOST=${VIRTUAL_HOST}
- - LETSENCRYPT_EMAIL
- - VIRTUAL_PROTO
- expose:
- - 80
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement