-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (57 loc) · 1.14 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
version: '3'
services:
db:
container_name: db
restart: always
image: postgres:15
volumes:
- ./postgres/init.sql:/docker-entrypoint-initdb.d/init.sql
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=central
ports:
- "5432:5432"
mqtt:
container_name: mqtt
image: eclipse-mosquitto:2.0.15
ports:
- 1883:1883
- 9001:9001
restart: always
volumes:
- ./mosquitto/config/:/mosquitto/config/:rw
- ./mosquitto/log/:/mosquitto/log/
- data:/mosquitto/data/
depends_on:
- db
adminer:
image: adminer:4.8.1
restart: always
depends_on:
- db
ports:
- 8080:8080
app:
build: .
container_name: relay_central_api
restart: always
ports:
- "3001:3001"
depends_on:
- db
- mqtt
volumes:
- ./src:/app/src
status_script:
build:
context: .
dockerfile: ./Dockerfile.status_script.yml
container_name: status_script
depends_on:
- db
- mqtt
volumes:
data:
postgres_data: