This repository was archived by the owner on Jan 19, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
121 lines (112 loc) · 2.62 KB
/
docker-compose.yaml
File metadata and controls
121 lines (112 loc) · 2.62 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
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
version: '3.3'
services:
mysqld:
image: mysql:latest
volumes:
- ./data/db:/var/lib/mysql
- ./config/init.sql:/docker-entrypoint-initdb.d/init.sql
environment:
MYSQL_ROOT_PASSWORD: abc123
MYSQL_DATABASE: nycu_me_dns
MYSQL_USER: nycu_me
MYSQL_PASSWORD: abc123
networks:
docker:
ipv4_address: 172.21.21.2
depends_on:
- fluentd
logging:
driver: fluentd
options:
fluentd-address: 127.0.0.1:24224
tag: db.sql
named:
image: ubuntu/bind9
volumes:
- ./data/zones:/var/named
- ./config/named:/etc/bind
ports:
- "53:53/UDP"
- "53:53"
- "953:953"
networks:
docker:
ipv4_address: 172.21.21.3
depends_on:
- fluentd
logging:
driver: fluentd
options:
fluentd-address: 127.0.0.1:24224
tag: named.dns
flask_app:
build: ./images/flask
volumes:
- ./config/named/ddnskey.conf:/etc/ddnskey.conf
- ./config/flask/config.py:/opt/app/config.py
ports:
- "8000:8000"
networks:
docker:
ipv4_address: 172.21.21.4
depends_on:
- fluentd
- named
- mysqld
logging:
driver: fluentd
options:
fluentd-address: 127.0.0.1:24224
tag: backend.api
backend_app:
build: ./images/flask
command: ["python3", "launch_thread.py"]
volumes:
- ./config/named/ddnskey.conf:/etc/ddnskey.conf
- ./config/flask/config.py:/opt/app/config.py
networks:
docker:
ipv4_address: 172.21.21.5
depends_on:
- fluentd
- mysqld
- named
logging:
driver: fluentd
options:
fluentd-address: 127.0.0.1:24224
tag: backend.thread
fluentd:
build: ./images/fluentd
container_name: fluentd
volumes:
- ./config/fluentd:/fluentd/etc
- ./data/logs:/fluentd/logs
ports:
- "24224:24224"
- "24224:24224/udp"
networks:
docker:
ipv4_address: 172.21.21.6
depends_on:
- elasticsearch
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.11.1
container_name: elasticsearch
environment:
- discovery.type=single-node
- cluster.name=elastic-udt-cluster
- xpack.security.transport.ssl.enabled=false
- xpack.security.http.ssl.enabled=false
- ELASTIC_USERNAME=elastic
- ELASTIC_PASSWORD=${ELASTIC_PASSWORD}
volumes:
- ./data/elasticsearch:/usr/share/elasticsearch/data
networks:
docker:
ipv4_address: 172.21.21.7
networks:
docker:
ipam:
config:
- subnet: 172.21.21.0/24