-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
42 lines (38 loc) · 1.13 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
version: '2'
services:
# redis:
# image: redis:5.0.3-alpine
# volumes:
# - ${PWD}/tmp/data:/data
# ports:
# - "6379"
# container_name: "redis-mosq"
# networks:
# - mosqnet
postgres:
ports:
- "5432:5432"
container_name: "postgres-mosq"
build:
context: "./postgres/"
dockerfile: "dockerfile"
networks:
- mosqnet
mosquitto:
build: .
volumes:
- ${PWD}/auth-plugin.conf:/etc/mosquitto.d/auth-plugin.conf
ports:
- "1883:1883"
- "9883:9883"
environment:
- DOMAIN=example.local
- PORT=8080
networks:
- mosqnet
depends_on:
- postgres
labels:
- "local.example.description=Mosquitto v1.5.5 MQTT server"
networks:
mosqnet: