forked from hotosm/osm-fieldwork
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
116 lines (109 loc) · 3.1 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
# Copyright (c) 2022, 2023 Humanitarian OpenStreetMap Team
# This file is part of osm-fieldwork.
#
# osm-fieldwork 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.
#
# osm-fieldwork 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 osm-fieldwork. If not, see <https:#www.gnu.org/licenses/>.
#
version: "3"
networks:
net:
name: osm-fieldwork
services:
fieldwork:
image: "ghcr.io/hotosm/osm-fieldwork:ci"
build:
target: ci
container_name: osm-fieldwork
volumes:
# Mount local package
- ./osm_fieldwork:/usr/local/lib/python3.10/site-packages/osm_fieldwork
# Mount local tests
- ./tests:/data/tests
depends_on:
proxy:
condition: service_started
networks:
- net
restart: "unless-stopped"
command: "pytest"
# db:
# image: "postgis/postgis:14-3.4-alpine"
# environment:
# - POSTGRES_USER=osm
# - POSTGRES_PASSWORD=dummycipassword
# - POSTGRES_DB=fieldwork
# networks:
# - net
# restart: "unless-stopped"
# healthcheck:
# test: pg_isready -U osm -d fieldwork
# start_period: 5s
# interval: 10s
# timeout: 5s
# retries: 3
proxy:
image: "docker.io/nginx:1.25.3-bookworm"
depends_on:
central:
condition: service_healthy
volumes:
- ./nginx/odk.conf:/etc/nginx/conf.d/odk.conf
- ./nginx/certs/central-fullchain.crt:/etc/nginx/central-fullchain.crt
- ./nginx/certs/central.key:/etc/nginx/central.key
networks:
- net
restart: "unless-stopped"
central:
image: "ghcr.io/hotosm/fmtm/odkcentral:v2023.5.0"
depends_on:
central-db:
condition: service_healthy
environment:
- DOMAIN=local
- SYSADMIN_PASSWD=Password1234
- HTTPS_PORT=443
- DB_HOST=central-db
- DB_USER=odk
- DB_PASSWORD=odk
- DB_NAME=odk
- DB_SSL=${DB_SSL:-null}
- EMAIL_HOST=mail
- EMAIL_PORT=25
- EMAIL_SECURE=false
- EMAIL_IGNORE_TLS=true
- EMAIL_USER=''
- EMAIL_PASSWORD=''
- OIDC_ENABLED=false
- SENTRY_ORG_SUBDOMAIN=o130137
- SENTRY_KEY=3cf75f54983e473da6bd07daddf0d2ee
- SENTRY_PROJECT=1298632
networks:
- net
restart: "unless-stopped"
central-db:
image: "postgis/postgis:14-3.4-alpine"
environment:
- POSTGRES_USER=odk
- POSTGRES_PASSWORD=odk
- POSTGRES_DB=odk
networks:
- net
restart: "unless-stopped"
healthcheck:
test: pg_isready -U odk -d odk
start_period: 5s
interval: 10s
timeout: 5s
retries: 3