* simplify back to single config.env! - back to good ole env vars! - remove shared secret, which made it difficult to have scheduled crawls, since secrets are immutable, so could not update config if a scheduled crawl existed :/ - all env vars unified in configs/config.env - run-swarm.sh and run-pod.sh 'source' this config - remove config.sample.yaml - customize minio volume dir via config.env - customize redis port via config.env - include authsign ports in debug-ports config
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
version: '3.9'
|
|
|
|
services:
|
|
job:
|
|
image: {{ job_image }}
|
|
command: ["python", "-m", "btrixcloud.swarm.profile_job"]
|
|
|
|
volumes:
|
|
- {{ env.SOCKET_SRC | default("/var/run/docker.sock", true) }}:{{ env.SOCKET_DEST | default("/var/run/docker.sock", true) }}:z
|
|
|
|
networks:
|
|
- btrix
|
|
|
|
deploy:
|
|
labels:
|
|
btrix.profile: "1"
|
|
btrix.archive: {{ aid }}
|
|
btrix.user: {{ userid }}
|
|
{%- if baseprofile %}
|
|
btrix.baseprofile: "{{ baseprofile }}"
|
|
{%- endif %}
|
|
|
|
#mode: replicated-job
|
|
replicas: 1
|
|
|
|
environment:
|
|
JOB_ID: "{{ id }}"
|
|
STACK_PREFIX: "browser-"
|
|
|
|
CRAWLER_IMAGE: "{{ env.CRAWLER_IMAGE }}"
|
|
|
|
STORE_ENDPOINT_URL: "{{ env.STORE_ENDPOINT_URL }}"
|
|
STORE_ACCESS_KEY: "{{ env.STORE_ACCESS_KEY }}"
|
|
STORE_SECRET_KEY: "{{ env.STORE_SECRET_KEY }}"
|
|
|
|
STORE_PATH: "{{ storage_path }}"
|
|
STORAGE_NAME: "{{ storage_name }}"
|
|
IDLE_TIMEOUT: "60"
|
|
START_URL: "{{ url }}"
|
|
PROFILE_PATH: "{{ profile_path }}"
|
|
|
|
networks:
|
|
btrix:
|
|
external:
|
|
name: btrix-net
|
|
|