-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
72 lines (66 loc) · 1.37 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Copyright (c) 2018 Mainflux
#
# SPDX-License-Identifier: Apache-2.0
version: "3"
services:
###
# NGINX
###
nginx:
image: nginx:alpine
container_name: edgex-nginx
volumes:
- $PWD/proxy/nginx/nginx.conf:/etc/nginx/nginx.conf
- $PWD/proxy/nginx/ssl/certs/mainflux-server.crt:/etc/ssl/certs/mainflux-server.crt
- $PWD/proxy/nginx/ssl/certs/mainflux-server.key:/etc/ssl/private/mainflux-server.key
- $PWD/proxy/nginx/ssl/dhparam.pem:/etc/ssl/certs/dhparam.pem
links:
- edgex-auth
depends_on:
- edgex-auth
ports:
- "80:80"
- "443:443"
###
# MongoDB
###
mongo:
image: mongo:latest
container_name: edgex-mongodb
command: --smallfiles --nojournal
ports:
- "27017:27017"
###
# Consul
###
# consul:
# image: consul:latest
# container_name: edgex-consul
# command: "agent -server -bootstrap-expect 1 -config-dir=/etc/consul -ui-dir /ui"
# restart: always
# mem_limit: 128m
# ports:
# - 8500
# expose:
# - 53
# - 8300
# - 8301
# - 8302
# - 8400
# - 8500
# dns:
# - 127.0.0.1
###
# EdgeX Auth
###
edgex-auth:
image: edgex-auth:latest
container_name: edgex-auth
links:
- mongo
depends_on:
- mongo
environment:
- AUTH_MONGO_URL=mongo
ports:
- "8089:8089"