-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
64 lines (59 loc) · 1.39 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
version: "3.8"
services:
aoi-ros2:
container_name: aoi-ros2
privileged: true # For GPIO # WARNING!
profiles: [full]
build:
context: .
image: aoi-ros2:latest
restart: always
volumes:
- aoi:/aoi # For production
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "10006:8080" # AOI Portal
depends_on:
- aoi-mysql
- aoi-minio
aoi-mysql:
container_name: aoi-mysql
profiles: [infra, full]
image: mysql:latest
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
ports:
- "10002:3306"
volumes:
- mysql_data:/var/lib/mysql # Persist MySQL data
aoi-adminer:
container_name: aoi-adminer
profiles: [infra, full]
image: adminer:latest
restart: always
depends_on:
- aoi-mysql
ports:
- "10003:8080"
aoi-minio:
container_name: aoi-minio
profiles: [infra, full]
image: minio/minio:latest
command: server /data --console-address ":9001"
ports:
- "10004:9000"
- "10005:9001"
volumes:
- minio_data:/data # Persist MinIO data
environment:
MINIO_ROOT_USER: ${MINIO_ROOT_USER}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD}
volumes:
aoi:
mysql_data:
minio_data: