@@ -11,10 +11,9 @@ services:
1111 POSTGRES_PASSWORD : " ${POSTGRES_PASSWORD}"
1212 command : postgres -c config_file=/etc/postgresql.conf -c hba_file=/etc/pg_hba.conf
1313 volumes :
14- # - ~/data/OKMaps/${COMPOSE_PROJECT_NAME}/postgresql/data:/var/lib/postgresql/data
1514 - db_data:/var/lib/postgresql/data
16- - ./server/workers/ pg_hba.conf:/etc/pg_hba.conf
17- - ./server/workers/ postgresql.conf:/etc/postgresql.conf
15+ - ./pg_hba.conf:/etc/pg_hba.conf
16+ - ./postgresql.conf:/etc/postgresql.conf
1817 networks :
1918 - headstart
2019
@@ -35,8 +34,7 @@ services:
3534 command : ["redis-server", "/etc/redis/redis.conf", "--bind", "${REDIS_HOST}", "--appendonly", "yes", "--port", "${REDIS_PORT}"]
3635 volumes :
3736 - ' redis:/var/lib/redis/data'
38- - ./server/workers/redis.conf:/etc/redis/redis.conf
39- - ./server/workers/certs:/etc/certs
37+ - ./redis.conf:/etc/redis/redis.conf
4038 ports :
4139 - " 127.0.0.1:${REDIS_PORT}:6379"
4240 restart : always
@@ -57,6 +55,8 @@ services:
5755 DATABASES : " ${DATABASES}"
5856 FLASK_ENV : " ${FLASK_ENV}"
5957 command : ["gunicorn", "--workers", "10", "--threads", "2", "-b", "0.0.0.0:${API_PORT}", "app:app", "--timeout", "300"]
58+ volumes :
59+ - ./api_cache:/var/api_cache
6060 depends_on :
6161 - redis
6262 networks :
@@ -81,8 +81,6 @@ services:
8181
8282 triple :
8383 image : triple:${SERVICE_VERSION}
84- env_file :
85- - server/workers/triple/triple.env
8684 environment :
8785 SERVICE_VERSION : " ${SERVICE_VERSION}"
8886 REDIS_HOST : " ${REDIS_HOST}"
@@ -105,8 +103,6 @@ services:
105103
106104 gsheets :
107105 image : gsheets:${SERVICE_VERSION}
108- env_file :
109- - server/workers/gsheets/gsheets.env
110106 environment :
111107 SERVICE_VERSION : " ${SERVICE_VERSION}"
112108 REDIS_HOST : " ${REDIS_HOST}"
@@ -122,15 +118,19 @@ services:
122118
123119 dataprocessing :
124120 image : dataprocessing:${SERVICE_VERSION}
125- env_file :
126- - server/workers/dataprocessing/dataprocessing.env
127121 environment :
128122 SERVICE_VERSION : " ${SERVICE_VERSION}"
129123 REDIS_HOST : " ${REDIS_HOST}"
130124 REDIS_PORT : " ${REDIS_PORT}"
131125 REDIS_DB : " ${REDIS_DB}"
132126 REDIS_PASSWORD : " ${REDIS_PASSWORD}"
133127 LOGLEVEL : " ${LOGLEVEL}"
128+ LOGFILE : " ${LOGFILE}"
129+ RENV_VERSION : 0.14.0-5
130+ CRAN_REPOS : https://cran.wu.ac.at
131+ LC_ALL : " en_US.UTF-8"
132+ LANG : " en_US.UTF-8"
133+ RENV_PATHS_CACHE : /renv/cache
134134 restart : always
135135 volumes :
136136 - /opt/local/renv/cache:/renv/cache
@@ -174,13 +174,12 @@ services:
174174 REDIS_DB : " ${REDIS_DB}"
175175 REDIS_PASSWORD : " ${REDIS_PASSWORD}"
176176 LOGLEVEL : " ${LOGLEVEL}"
177- LOGFILE : " /var/log/headstart/headstart.log "
177+ LOGFILE : " ${LOGFILE} "
178178 RENV_VERSION : 0.14.0-5
179179 CRAN_REPOS : https://cran.wu.ac.at
180180 LC_ALL : " en_US.UTF-8"
181181 LANG : " en_US.UTF-8"
182182 RENV_PATHS_CACHE : /renv/cache
183- PYTHONIOENCODING : " utf-8"
184183 restart : always
185184 volumes :
186185 - /opt/local/renv/cache:/renv/cache
@@ -199,13 +198,12 @@ services:
199198 REDIS_DB : " ${REDIS_DB}"
200199 REDIS_PASSWORD : " ${REDIS_PASSWORD}"
201200 LOGLEVEL : " ${LOGLEVEL}"
202- LOGFILE : " /var/log/headstart/headstart.log "
201+ LOGFILE : " ${LOGFILE} "
203202 RENV_VERSION : 0.14.0-5
204203 CRAN_REPOS : https://cran.wu.ac.at
205204 LC_ALL : " en_US.UTF-8"
206205 LANG : " en_US.UTF-8"
207206 RENV_PATHS_CACHE : /renv/cache
208- PYTHONIOENCODING : " utf-8"
209207 restart : always
210208 volumes :
211209 - /opt/local/renv/cache:/renv/cache
@@ -219,6 +217,8 @@ volumes:
219217 redis :
220218 db_data :
221219 driver : local
220+ api_cache :
221+ driver : local
222222
223223networks :
224224 headstart:
0 commit comments