forked from hotosm/fmtm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.staging.yml
112 lines (108 loc) · 2.85 KB
/
docker-compose.staging.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
# Copyright (c) 2022, 2023 Humanitarian OpenStreetMap Team
# This file is part of FMTM.
#
# FMTM is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# FMTM is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with FMTM. If not, see <https:#www.gnu.org/licenses/>.
#
name: fmtm-stage
volumes:
fmtm_frontend:
name: fmtm-frontend-${GIT_BRANCH}
fmtm_db_data:
name: fmtm-db-data-${GIT_BRANCH}
fmtm_data:
name: fmtm-s3-data-${GIT_BRANCH}
fmtm_logs:
name: fmtm-logs-${GIT_BRANCH}
fmtm_images:
name: fmtm-images-${GIT_BRANCH}
fmtm_tiles:
name: fmtm-tiles-${GIT_BRANCH}
certs:
name: fmtm-certs-${GIT_BRANCH}
certbot_data:
name: fmtm-certbot-data-${GIT_BRANCH}
central_db_data:
name: fmtm-central-db-data-${GIT_BRANCH}
central_frontend:
name: fmtm-central-frontend-${GIT_BRANCH}
networks:
fmtm-net:
name: fmtm-${GIT_BRANCH}
services:
proxy:
extends:
file: docker-compose.development.yml
service: proxy
api:
extends:
file: docker-compose.development.yml
service: api
ui:
extends:
file: docker-compose.development.yml
service: ui
central:
extends:
file: docker-compose.development.yml
service: central
central-ui:
extends:
file: docker-compose.development.yml
service: central-ui
s3:
extends:
file: docker-compose.development.yml
service: s3
fmtm-db:
extends:
file: docker-compose.development.yml
service: fmtm-db
electric:
extends:
file: docker-compose.development.yml
service: electric
central-db:
extends:
file: docker-compose.development.yml
service: central-db
migrations:
extends:
file: docker-compose.development.yml
service: migrations
backups:
image: "ghcr.io/hotosm/fmtm/backend:${GIT_BRANCH}"
depends_on:
fmtm-db:
condition: service_healthy
central-db:
condition: service_healthy
s3:
condition: service_healthy
env_file:
- .env
networks:
- fmtm-net
entrypoint: ["/backup-entrypoint.sh"]
restart: "on-failure:2"
healthcheck:
test: pg_isready -U ${FMTM_DB_USER} -d ${FMTM_DB_NAME}
start_period: 5s
interval: 10s
timeout: 5s
retries: 3
certbot:
extends:
file: docker-compose.development.yml
service: certbot
image: "ghcr.io/hotosm/fmtm/proxy:certs-init-staging"