diff --git a/devops/geoapi-workers/Makefile b/devops/geoapi-workers/Makefile new file mode 100644 index 00000000..d7e720b2 --- /dev/null +++ b/devops/geoapi-workers/Makefile @@ -0,0 +1,12 @@ +.PHONY: start +start: + echo "starting (GEOAPI_TAG=${GEOAPI_TAG})" + docker compose -f docker-compose.yml up -d + +.PHONY: stop +stop: + docker compose -f docker-compose.yml down + +.PHONY: pull +pull: + docker compose pull workers \ No newline at end of file diff --git a/devops/geoapi-workers/docker-compose.yml b/devops/geoapi-workers/docker-compose.yml new file mode 100644 index 00000000..bb7e614b --- /dev/null +++ b/devops/geoapi-workers/docker-compose.yml @@ -0,0 +1,17 @@ +--- +version: "3" +services: + workers: + image: taccaci/geoapi-workers:${GEOAPI_TAG} + volumes: + - /assets:/assets + env_file: /opt/portal/conf/secrets.env + environment: + - FLASK_APP=/app/geoapi/app.py + - ASSETS_BASE_DIR=/assets + - GEOAPI_TAG=ENV_GEOAPI_TAG + stdin_open: true + tty: true + container_name: geoapiworkers + hostname: geoapiworkers + command: "celery -A geoapi.celery_app worker -l info" \ No newline at end of file