-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-byteroad.yml
178 lines (164 loc) · 4.73 KB
/
docker-compose-byteroad.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
# =================================================================
#
# Authors: doublebyte1 <[email protected]>>
#
# Copyright (c) 2024 doublebyte
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restriction, including without limitation the rights to use,
# copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following
# conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
#
# =================================================================
services:
apache-httpd:
image: httpd:2.4
container_name: httpd
depends_on:
- pygeoapi
volumes:
- ./apache-httpd/httpd-ssl.conf:/usr/local/apache2/conf/httpd.conf
- /etc/letsencrypt/archive/ogcapi.byteroad.net/fullchain1.pem:/usr/local/apache2/conf/ogcapi/fullchain.pem
- /etc/letsencrypt/archive/ogcapi.byteroad.net/privkey1.pem:/usr/local/apache2/conf/ogcapi/privkey.pem
- /etc/letsencrypt/archive/matomo.byteroad.net/fullchain1.pem:/usr/local/apache2/conf/matomo/fullchain.pem
- /etc/letsencrypt/archive/matomo.byteroad.net/privkey1.pem:/usr/local/apache2/conf/matomo/privkey.pem
# - /etc/cert/ogcapi_chain.cer:/usr/local/apache2/conf/ogcapi/fullchain.pem
# - /etc/cert/ogcapi_privkey.pem:/usr/local/apache2/conf/ogcapi/privkey.pem
# - /etc/cert/logs_chain.cer:/usr/local/apache2/conf/matomo/fullchain.pem
# - /etc/cert/logs_privkey.pem:/usr/local/apache2/conf/matomo/privkey.pem
- apache_log:/usr/local/apache2/logs
ports:
- "80:80"
- "443:443"
networks:
- default
pygeoapi:
image: geopython/pygeoapi:latest
container_name: pygeoapi
expose:
- "80"
environment:
PYGEOAPI_CONFIG: docker-config.yml
PYGEOAPI_OPENAPI: example-openapi.yml
env_file:
- .env # path to your .env file
volumes:
- ./pygeoapi/docker.config.yml:/pygeoapi/local.config.yml
- ./data:/data
restart: on-failure
links:
- tiles
networks:
- default
depends_on:
db_and_api_init:
condition: service_completed_successfully
restart: true
tiles:
image: ghcr.io/maplibre/martin
restart: on-failure
ports:
- "3000:3000"
env_file:
- .env
depends_on:
- postgis
networks:
- default
postgis:
build: ./postgis/
environment:
# POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_HOST_AUTH_METHOD: trust
env_file:
- .env # path to your .env file
expose:
- 5432
ports:
- "5432:5432"
container_name: postgis
volumes:
- ./postgis/data:/var/lib/postgresql/data
- ./postgis/scripts:/tmp/
networks:
- default
- bridge1
db_and_api_init:
build: ./utils/
container_name: db_and_api_init
env_file:
- .env # path to your .env file
volumes:
- ./pygeoapi/docker.config.yml:/pygeoapi/docker.config.yml
- ./data:/data
depends_on:
- postgis
networks:
- default
mariadb:
image: mariadb:10.11
container_name: mariadb
command: --max-allowed-packet=64MB
restart: always
volumes:
- maria:/var/lib/mysql:Z
environment:
- MYSQL_ROOT_PASSWORD=
- MARIADB_AUTO_UPGRADE=1
- MARIADB_DISABLE_UPGRADE_BACKUP=1
env_file:
- .env
networks:
- default
matomo:
build:
context: ./matomo/
dockerfile: Dockerfile.main
container_name: matomo
ports:
- 8081:80
volumes:
- matomo:/var/www/html:z
- apache_log:/apache:ro
environment:
- MATOMO_DATABASE_HOST=mariadb
env_file:
- .env
networks:
- default
python_matomo:
build:
context: ./matomo/
dockerfile: Dockerfile.cron
container_name: matomo_python
env_file:
- .env
volumes:
- matomo:/var/www/html:z
- apache_log:/apache:ro
depends_on:
- matomo
volumes:
maria:
matomo:
apache_log:
networks:
default:
bridge1: