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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Very nice!
Proposition - we can move NGINX to port default port
80
. This way you would deploy your API for example atapi.<your_domain>
.Also, it would be interesting to add SSL support in NGINX (and terminate SSL there) and run this on default
443
port.