-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (41 loc) · 909 Bytes
/
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
version: '3.3'
volumes:
vol-emqx-data:
name: foo-emqx-data
vol-emqx-etc:
name: foo-emqx-etc
vol-emqx-log:
name: foo-emqx-log
services:
postgres:
image: postgres:13
environment:
- POSTGRES_DB=mqtt_db
- POSTGRES_USER=marianocereda
- POSTGRES_PASSWORD=admin123
ports:
- 5432:5432
volumes:
- ./postgres_data:/var/lib/postgresql/data
pgadmin:
image: dpage/pgadmin4
environment:
- PGADMIN_DEFAULT_PASSWORD=root
ports:
- 5050:80
emqx:
container_name: emqx
image: emqx/emqx:latest
ports:
- 18083:18083
- 1883:1883
- 8093:8093
- 8094:8094
environment:
EMQX_NAME: foo_emqx
EMQX_HOST: 127.0.0.1
volumes:
- vol-emqx-data:/opt/emqx/data
- vol-emqx-etc:/opt/emqx/etc
- vol-emqx-log:/opt/emqx/log