-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
113 lines (104 loc) · 2.57 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
version: '3'
networks:
fuinynet:
driver: bridge
services:
# BinaryDoc Database
binarydoc-db:
# The MySQL version is aligned with the corresponding Ubuntu LTS
image: mysql:8
command: --default-authentication-plugin=mysql_native_password
hostname: binarydoc-db
restart: always
environment:
MYSQL_DATABASE: 'db'
# Password for root access, subjected to change on your requirement
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
volumes:
# Where our data will be persisted
- ./etc/mysql/conf.d:/etc/mysql/conf.d
- ./mysql-data:/var/lib/mysql
expose:
# Opens port 3306 on the container inside the docker network
- '3306'
ports:
# Map docker MySQL port to hosting machine
- ${MYSQL_PORT}:3306
networks:
- fuinynet
# Minio File Server
minio:
image: minio/minio:latest
hostname: minio
restart: always
environment:
- MINIO_ACCESS_KEY=minioadmin
- MINIO_SECRET_KEY=${MINIO_PASSWORD}
volumes:
- ./minio-data:/data
command: server /data
expose:
- '9000'
ports:
- ${MINIO_PORT}:9000
networks:
- fuinynet
# PlantUML Server
plantuml:
image: plantuml/plantuml-server:tomcat
hostname: plantuml
restart: always
expose:
- '8080'
ports:
- ${PLANTUML_PORT}:8080
networks:
- fuinynet
# Database Admin Tool
adminer:
image: adminer
hostname: adminer
restart: always
environment:
# Hostname of the DB Image
ADMINER_DEFAULT_SERVER: 'binarydoc-db'
depends_on:
- binarydoc-db
ports:
- ${ADMINER_PORT}:8080
networks:
- fuinynet
# BinaryDoc Parser and WebSite
binarydoc:
image: fuiny/binarydoc:latest
hostname: binarydoc
restart: always
environment:
# We need passwords in our application
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
MINIO_PASSWORD: "${MINIO_PASSWORD}"
# We need the ports for Messages
ADMINER_PORT: "${ADMINER_PORT}"
BINARYDOC_PORT: "${BINARYDOC_PORT}"
MINIO_PORT: "${MINIO_PORT}"
MYSQL_PORT: "${MYSQL_PORT}"
PLANTUML_PORT: "${PLANTUML_PORT}"
depends_on:
- binarydoc-db
- minio
- plantuml
volumes:
# Where the application to parse could copy to
- ./app-to-parse:/opt/fuiny/app-to-parse
# Expose Apache server logs
- ./apache2-log:/var/log/apache2
ports:
- ${BINARYDOC_PORT}:80
networks:
- fuinynet
# Names of MySQL DB volume
volumes:
apache2-log:
app-to-parse:
minio-data:
mysql-data: