Created
May 21, 2017 01:36
-
-
Save kyleferguson/49e90db16915d4f285b2f801d353b1e7 to your computer and use it in GitHub Desktop.
Mainflux manager + nginx proxy + mock auth service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
# Copyright (c) Mainflux | |
# | |
# Mainflux server is licensed under an Apache license, version 2.0 license. | |
# All rights not explicitly granted in the Apache license, version 2.0 are reserved. | |
# See the included LICENSE file for more details. | |
### | |
version: "2" | |
services: | |
### | |
# MongoDB | |
### | |
mongo: | |
image: mongo:latest | |
ports: | |
- "27017:27017" | |
- "28017:28017" | |
container_name: mainflux-mongodb | |
command: --smallfiles --nojournal | |
### | |
# Mainflux mock auth | |
### | |
auth: | |
image: kylegferg/mainflux-mock-auth | |
container_name: mainflux-auth | |
### | |
# Mainflux Nginx Proxy | |
### | |
nginx: | |
image: kylegferg/mainflux-nginx | |
ports: | |
- "7090:80" | |
container_name: mainflux-nginx | |
### | |
# Mainflux Manager | |
### | |
manager: | |
image: kylegferg/mainflux-manager | |
ports: | |
- "7070:7070" | |
container_name: mainflux-manager | |
command: mainflux-manager -p 7070 -m mainflux-mongodb |
Very nice!
Proposition - we can move NGINX to port default port 80
. This way you would deploy your API for example at api.<your_domain>
.
Also, it would be interesting to add SSL support in NGINX (and terminate SSL there) and run this on default 443
port.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Connect to manager using the nginx proxy on
localhost:7090
Will send an authentication request to the temporary mock auth service, and then forward onto the manager service