-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (55 loc) · 1.24 KB
/
docker-compose.yml
File metadata and controls
60 lines (55 loc) · 1.24 KB
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
version: '3.8'
services:
postgres:
image: postgres:15-alpine
container_name: microkernel-postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: microkernel_dev
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- microkernel-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
emqx:
image: emqx/emqx:5.3.0
container_name: microkernel-emqx
environment:
- EMQX_NAME=emqx
- EMQX_HOST=emqx
- EMQX_NODE__COOKIE=microkernel_secret_cookie
- EMQX_DASHBOARD__DEFAULT_USERNAME=admin
- EMQX_DASHBOARD__DEFAULT_PASSWORD=public
ports:
- "1883:1883"
- "8883:8883"
- "8083:8083"
- "8084:8084"
- "18083:18083"
volumes:
- emqx_data:/opt/emqx/data
- emqx_log:/opt/emqx/log
networks:
- microkernel-network
healthcheck:
test: ["CMD", "emqx", "ping"]
interval: 10s
timeout: 5s
retries: 5
volumes:
postgres_data:
driver: local
emqx_data:
driver: local
emqx_log:
driver: local
networks:
microkernel-network:
driver: bridge