-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·232 lines (220 loc) · 6.13 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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
services:
ftp_server:
image: delfer/alpine-ftp-server
container_name: ftp_server
volumes:
- ./ftp1:/home/user1
- ./ftp2:/home/user2
environment:
- ADRESS=ftp.local
- USERS=user1|garlictomatofood|/home/user1|1000 user2|garlictomatofood|/home/user2|1002
restart: always
dns:
- 10.13.12.69
# - fd69:acab:1312::69 # Issues with IPv6
networks:
default:
ipv4_address: 10.13.12.116
# ipv6_address: fd69:acab:1312::116 # Issues with IPv6
smb:
image: ghcr.io/servercontainers/samba:latest
container_name: smb
restart: unless-stopped
dns:
- 10.13.12.69
- fd69:acab:1312::69
ports:
- 445:445
- 137:137
- 138:138
- 139:139
environment:
ACCOUNT_user1: user1
UID_user1: 1000
GROUPS_user1: workgroup
ACCOUNT_user2: user2
UID_user2: 1002
GROUPS_user2: workgroup
SAMBA_VOLUME_CONFIG_user1: "[user1_Share]; path=/shares/data/user1; valid users = user1; guest ok = no; read only = no; browseable = no; force group = workgroup"
SAMBA_VOLUME_CONFIG_user2: "[user2_Share]; path=/shares/data/user2; valid users = user2; guest ok = no; read only = no; browseable = no; force group = workgroup"
SAMBA_VOLUME_CONFIG_public: "[Public]; path=/shares/data/public; valid users = user1, user2; guest ok = no; read only = no; browseable = yes; force group = workgroup"
volumes:
- ./smb_user1:/shares/data/user1
- ./smb_user2:/shares/data/user2
- ./smb_public:/shares/data/public
networks:
default:
ipv4_address: 10.13.12.23
ipv6_address: fd69:acab:1312::23
vm_debian:
# image: ghcr.io/pilz0/lf9:main
container_name: vm_debian
dns:
- 10.13.12.69
- fd69:acab:1312::69
# Uncomment to build the Image form source
build:
context: .
dockerfile: ./Dockerfile-vm_debian
ports:
- 5901:5901
- 6901:6901
networks:
default:
ipv4_address: 10.13.12.55
ipv6_address: fd69:acab:1312::55
unbound:
container_name: unbound
image: "mvance/unbound:latest" # comment out for use on ARM64 Systems
# image: "mvance/unbound-rpi:latest" # uncomment for use on ARM64 Systems
dns:
- 10.13.12.69
- fd69:acab:1312::69
expose:
- "53"
volumes:
- ./a-records.conf:/opt/unbound/etc/unbound/a-records.conf:ro
- ./forward-records.conf:/opt/unbound/etc/unbound/forward-records.conf:ro
restart: unless-stopped
networks:
default:
ipv4_address: 10.13.12.69
ipv6_address: fd69:acab:1312::69
mariadb:
container_name: mariadb
image: docker.io/bitnami/mariadb:11.4
dns:
- 10.13.12.69
- fd69:acab:1312::69
volumes:
- 'mariadb_data:/bitnami/mariadb'
environment:
- ALLOW_EMPTY_PASSWORD=yes
- MARIADB_USER=bn_wordpress
- MARIADB_DATABASE=bitnami_wordpress
networks:
default:
ipv4_address: 10.13.12.50
ipv6_address: fd69:acab:1312::50
wordpress:
container_name: wordpress
image: docker.io/bitnami/wordpress-nginx:6
dns:
- 10.13.12.69
- fd69:acab:1312::69
volumes:
- 'wordpress_data:/bitnami/wordpress'
depends_on:
- mariadb
environment:
- ALLOW_EMPTY_PASSWORD=yes
- WORDPRESS_DATABASE_HOST=mariadb.local
- WORDPRESS_DATABASE_PORT_NUMBER=3306
- WORDPRESS_DATABASE_USER=bn_wordpress
- WORDPRESS_DATABASE_NAME=bitnami_wordpress
networks:
default:
ipv4_address: 10.13.12.42
ipv6_address: fd69:acab:1312::42
grafana:
image: grafana/grafana
container_name: grafana
dns:
- 10.13.12.69
- fd69:acab:1312::69
restart: unless-stopped
volumes:
- ./datasource_prometheus.yml:/etc/grafana/provisioning/datasources/datasource.yaml
- ./dashboard_grafana.yml:/etc/grafana/provisioning/dashboards/dashboard.yaml
- ./node_exporter_dashboard.json:/etc/grafana/provisioning/dashboards/node_exporter_dashboard.json
- 'grafana_storage:/var/lib/grafana'
networks:
default:
ipv4_address: 10.13.12.99
ipv6_address: fd69:acab:1312::99
prometheus:
container_name: prometheus
image: prom/prometheus
dns:
- 10.13.12.69
- fd69:acab:1312::69
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
networks:
default:
ipv4_address: 10.13.12.98
ipv6_address: fd69:acab:1312::98
node-exporter:
image: prom/node-exporter:latest
container_name: node-exporter
restart: unless-stopped
dns:
- 10.13.12.69
- fd69:acab:1312::69
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
command:
- '--path.procfs=/host/proc'
- '--path.rootfs=/rootfs'
- '--path.sysfs=/host/sys'
- '--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)'
expose:
- 9100
networks:
default:
ipv4_address: 10.13.12.97
ipv6_address: fd69:acab:1312::97
db:
container_name: postgres_db
image: postgres:15-alpine
environment:
POSTGRES_DB: wiki
POSTGRES_PASSWORD: wikijsrocks
POSTGRES_USER: wikijs
logging:
driver: "none"
restart: unless-stopped
volumes:
- ./wiki_data:/var/lib/postgresql/data
dns:
- 10.13.12.69
- fd69:acab:1312::69
networks:
default:
ipv4_address: 10.13.12.96
ipv6_address: fd69:acab:1312::96
wiki:
container_name: wiki
image: ghcr.io/requarks/wiki:2
environment:
DB_TYPE: postgres
DB_HOST: db
DB_PORT: 5432
DB_USER: wikijs
DB_PASS: wikijsrocks
DB_NAME: wiki
restart: unless-stopped
dns:
- 10.13.12.69
- fd69:acab:1312::69
networks:
default:
ipv4_address: 10.13.12.75
ipv6_address: fd69:acab:1312::75
volumes:
grafana_storage: {}
mariadb_data:
driver: local
wordpress_data:
driver: local
networks:
default:
enable_ipv6: true
driver: bridge
ipam:
driver: default
config:
- subnet: 10.13.12.0/24
- subnet: fd69:acab:1312::/64