This repository has been archived by the owner on Nov 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
137 lines (133 loc) · 4.29 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
version: "3"
services:
opencdms_api:
build:
context: .
dockerfile: Dockerfile
container_name: opencdms_api
ports:
- "5070:5000"
env_file:
- .env
environment:
- CLIMSOFT_DEFAULT_USER=root
- PYGEOAPI_CONFIG=/code/pygeoapi-config.yml
- PYGEOAPI_OPENAPI=/code/pygeoapi-openapi.yml
- PYTHONPATH=/code/surface/api
- CLIMSOFT_DATABASE_URI=mysql+mysqldb://root:password@mysql:3306/mariadb_climsoft_test_db_v4
- CLIMSOFT_SECRET_KEY=climsoft-secret-key
- AUTH_DB_URI=postgresql+psycopg2://dba:dba@opencdms_surface_db:5432/surface
- SURFACE_DB_NAME=surface
- SURFACE_DB_USER=dba
- SURFACE_DB_PASSWORD=dba
- SURFACE_DB_HOST=opencdms_surfacedb
- SURFACE_DB_PORT=5432
- MCH_DB_PORT=3306
- MCH_DB_HOST=mch-english
- MCH_DB_NAME=mch
- MCH_DB_PASSWORD=password
- MCH_DB_USER=root
- APP_SECRET=app-secret
- SURFACE_SECRET_KEY=surface-secret-key
- SECRET_KEY=secret-key
- TIMESCALEDB_TELEMETRY=off
- PGDATA=/var/lib/postgresql/data/pgdata
- SURFACE_DATA_DIR=/home/surface/surface_data/shared
- SURFACE_DB_ENGINE=django.contrib.gis.db.backends.postgis
- SURFACE_BROKER_URL=redis://redis:6379/0
- SURFACE_DJANGO_DEBUG=False
- LOGIN_REDIRECT_URL=/wx/stations/map/
- LOGOUT_REDIRECT_URL=/accounts/login/
- LRGS_EXECUTABLE_PATH=/surface/LrgsClient/bin/getDcpMessages
- LRGS_SERVER_HOST=lrgseddn1.cr.usgs.gov
- LRGS_SERVER_PORT=16003
- LRGS_USER=belnms
- LRGS_PASSWORD=BWSNlrgs2016!
- LRGS_CS_FILE_PATH=/data/search_parameters.cs
- LRGS_MAX_INTERVAL=719
- ENTL_PRIMARY_SERVER_HOST=107.23.152.248
- ENTL_PRIMARY_SERVER_PORT=2324
- ENTL_SECONDARY_SERVER_HOST=107.23.135.182
- ENTL_SECONDARY_SERVER_PORT=2324
- ENTL_PARTNER_ID=2B6FDADE-CA7F-443A-AD79-2FF21CEF4857
- EMAIL_HOST=smtp.gmail.com
- EMAIL_HOST_USER=test_email_host
- EMAIL_HOST_PASSWORD=test_email_password
- EMAIL_PORT=587
- TIMEZONE_NAME=America/Belize
- TIMEZONE_OFFSET=-360
- INMET_HOURLY_DATA_URL=
- INMET_DAILY_DATA_BASE_PATH=
- MAP_LATITUDE=17.302212
- MAP_LONGITUDE=-88.429595
- MAP_ZOOM=8
- SPATIAL_ANALYSIS_INITIAL_LATITUDE=15.8469375676
- SPATIAL_ANALYSIS_INITIAL_LONGITUDE=-89.227
- SPATIAL_ANALYSIS_FINAL_LATITUDE=18.5299822047
- SPATIAL_ANALYSIS_FINAL_LONGITUDE=-87.485
- SPATIAL_ANALYSIS_SHAPE_FILE_PATH=/surface/static/images/blz_shape.png
- STATION_MAP_WIND_SPEED_ID=51
- STATION_MAP_WIND_GUST_ID=53
- STATION_MAP_WIND_DIRECTION_ID=56
- STATION_MAP_TEMP_MAX_ID=16
- STATION_MAP_TEMP_MIN_ID=14
- STATION_MAP_TEMP_AVG_ID=10
- STATION_MAP_ATM_PRESSURE_ID=60
- STATION_MAP_PRECIPITATION_ID=0
- STATION_MAP_RELATIVE_HUMIDITY_ID=30
- STATION_MAP_SOLAR_RADIATION_ID=72
- STATION_MAP_FILTER_WATERSHED=1
- STATION_MAP_FILTER_REGION=1
- STATION_MAP_FILTER_COMMUNICATION=1
- SURFACE_API_ENABLED=false
- CLIMSOFT_API_ENABLED=true
- MCH_API_ENABLED=false
- PYGEOAPI_ENABLED=false
- DEFAULT_USERNAME=admin
- DEFAULT_PASSWORD=password123
- HOST_FQDN=$HOST_FQDN
- CLIMSOFT_AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID
- CLIMSOFT_AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY
- AUTH_ENABLED=true
depends_on:
- opencdms_surfacedb
volumes:
- ./src:/code/src
- ./climsoft_uploads:/climsoft_uploads
networks:
- opencdms-test-data_opencdms
command:
[
"uvicorn",
"src.opencdms_api.main:app",
"--host",
"0.0.0.0",
"--port",
"5000",
"--reload",
"--use-colors",
]
opencdms_surfacedb:
image: timescale/timescaledb-postgis:2.3.0-pg13
container_name: opencdms_surface_db
volumes:
- opencdms_surface_data:/var/lib/postgresql/data
ports:
- "65432:5432"
environment:
- POSTGRES_PASSWORD=dba
- POSTGRES_DB=surface
- POSTGRES_USER=dba
logging:
driver: "json-file"
options:
max-size: "1M"
max-file: "10"
networks:
- opencdms-test-data_opencdms
volumes:
opencdms_surface_data:
networks:
opencdms-test-data_opencdms:
external: true
driver: bridge