-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
152 lines (144 loc) · 3.6 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
version: '3'
services:
prometheus:
image: prom/prometheus:latest
container_name: prometheus
volumes:
- ./docker-configs/prometheus/config:/etc/prometheus/
- ./docker-data/prometheus/data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.external-url=http://nginx/prometheus/'
expose:
- "9090"
ports:
- "9090:9090"
alertmanager:
image: prom/alertmanager:latest
container_name: alertmanager
command:
- '--config.file=/etc/alertmanager/alertmanager.yml'
expose:
- "9093"
ports:
- "9093:9093"
volumes:
- ./docker-configs/alertmanager/config:/etc/alertmanager/
grafana:
image: grafana/grafana:latest
container_name: grafana
links:
- prometheus:prometheus
volumes:
- ./docker-data/grafana:/var/lib/grafana
- ./docker-configs/grafana/config/grafana.ini:/etc/grafana/grafana.ini
ports:
- "3000:3000"
nginx:
image: nginx:latest
container_name: nginx
environment:
- NGINX_HOST=iot.crearts.xyz
- NGINX_PORT=80
volumes:
- ./docker-configs/nginx/config/default.conf:/etc/nginx/conf.d/default.conf
ports:
- "8082:80"
rabbitmq:
build:
context: ./
dockerfile: DockerFile_rabbitmq
container_name: rabbitmq
ports:
- "5671:5671"
- "5672:5672"
- "15672:15672"
- "1883:1883"
- "8884:8883"
postgres:
image: postgres:14
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: 1234
volumes:
- ./docker-data/postgresql:/var/lib/postgresql/data
# builder for Raspberry PI Zero 2, 3, 4
builder_arm64v8:
cap_add:
- SYS_PTRACE
security_opt:
- seccomp:unconfined
build:
context: .
dockerfile: Dockerfile_builder
args:
UID: 1000
USER: builder
ARCH: armv8
IMAGE: arm64v8/debian:bullseye
container_name: builder_arm64v8
ports:
- "2022:22"
volumes:
- ./docker-debug-armv8/bin:/home/builder/rpi-robot/cmake-build-debug-armv8/bin
- ./docker-debug-armv8/etc:/home/builder/rpi-robot/cmake-build-debug-armv8/etc
# builder for Banana PI Berry
builder_arm32v7:
cap_add:
- SYS_PTRACE
security_opt:
- seccomp:unconfined
build:
context: .
dockerfile: Dockerfile_builder
args:
UID: 1000
USER: builder
ARCH: armv7
IMAGE: arm32v7/debian:bullseye
CONAN: conan-arm32v7.profile
container_name: builder_arm32v7
ports:
- "2023:22"
volumes:
- ./docker-debug-armv7/bin:/home/builder/rpi-robot/cmake-build-debug-armv7/bin
- ./docker-debug-armv7/etc:/home/builder/rpi-robot/cmake-build-debug-armv7/etc
simulator_arm64v8:
privileged: true
cap_add:
- SYS_PTRACE
security_opt:
- seccomp:unconfined
build:
context: .
dockerfile: Dockerfile_simulator
args:
UID: 1000
USER: debugger
IMAGE: arm64v8/debian:bullseye
container_name: simulator_arm64v8
ports:
- "3022:22"
- "1234:1234"
volumes:
- ./docker-debug-armv8/etc:/home/debugger/etc
simulator_arm32v7:
cap_add:
- SYS_PTRACE
security_opt:
- seccomp:unconfined
build:
context: .
dockerfile: Dockerfile_simulator
args:
UID: 1000
USER: debugger
IMAGE: arm32v7/debian:bullseye
container_name: simulator_arm32v7
ports:
- "3023:22"
- "1235:1234"
volumes:
- ./docker-debug-armv8/etc:/home/debugger/etc