-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
68 lines (62 loc) · 1.63 KB
/
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
version: "3"
services:
redis:
image: redis:6-alpine
container_name: redis
hostname: redis
ports:
- "6379:6379/tcp"
# volumes:
# - .data/redis:/data
# mosquitto:
# image: eclipse-mosquitto:2.0.8
# container_name: mosquitto
# hostname: mqtt-broker
# command:
# - mosquitto
# - -c
# - /mosquitto-no-auth.conf
# ports:
# - "1883:1883/tcp"
emqx:
# https://docs.emqx.io/en/broker/v4.3/getting-started/install.html#create-a-simple-static-cluster-by-docker-compose
image: emqx/emqx:latest
container_name: emqx
hostname: mqtt-broker
environment:
EMQX_LOADED_PLUGINS: "emqx_recon,emqx_retainer,emqx_management,emqx_auth_mnesia,emqx_auth_redis"
EMQX_ALLOW_ANONYMOUS: false
EMQX_AUTH__USER__1__USERNAME: ${MQTT_USERNAME:-admin}
EMQX_AUTH__USER__1__PASSWORD: ${MQTT_PASSWORD:-public}
EMQX_AUTH__REDIS__SERVER: redis:6379
EMQX_AUTH__REDIS__POOL: 8
EMQX_AUTH__REDIS__DATABASE: 1
ports:
- "1883:1883/tcp"
- "8083:8083/tcp"
postgres:
image: postgres
container_name: postgres
hostname: postgres
ports:
- "5432:5432/tcp"
environment:
POSTGRES_DB: gosd
POSTGRES_PASSWORD: 'password'
PGDATA: '/var/lib/postgresql/data/pgdata'
# volumes:
# - .data/pgdata:/var/lib/postgresql/data
swagger:
image: swaggerapi/swagger-ui
container_name: swagger
hostname: swagger
ports:
- "8888:8080/tcp"
environment:
SWAGGER_JSON: "/app/openapi.json"
BASE_URL: ""
volumes:
- ./swag/swagger.json:/app/openapi.json
networks:
default:
name: gosd