browsertrix/backend/btrixcloud/swarm/templates/profilebrowser.yaml
Ilya Kreymer b9d7907ab3
Single config and env vars (#267)
* 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
2022-06-16 21:50:03 -07:00

43 lines
823 B
YAML

version: '3.9'
services:
browser:
image: {{ env.CRAWLER_IMAGE }}
command:
- create-login-profile
- --interactive
- --filename
- /tmp/profile.tar.gz
- --url
- "{{ url }}"
{%- if env.PROFILE_FILENAME %}
- --profile
- "@{{ env.PROFILE_FILENAME }}"
{%- endif %}
hostname: "browser-{{ id }}-0.browser-{{ id }}"
networks:
- btrix
deploy:
endpoint_mode: dnsrr
replicas: 1
labels:
browser: {{ id }}
role: browser
environment:
STORE_ENDPOINT_URL: "{{ env.STORE_ENDPOINT_URL }}"
STORE_ACCESS_KEY: "{{ env.STORE_ACCESS_KEY }}"
STORE_SECRET_KEY: "{{ env.STORE_SECRET_KEY }}"
STORE_PATH: "{{ env.STORE_PATH }}"
networks:
btrix:
external:
name: btrix-net