basicswap/docker/production/compose-fragments/8_script.yml
tecnovert 484d811fe7
docker: Add script container fragment.
Example:
python3 ./scripts/build_yml_files.py -c bitcoin monero dash pivx --withscript
2023-03-09 15:38:45 +02:00

23 lines
754 B
YAML

swapscript:
image: i_swapclient
build:
context: swapclient
dockerfile: Dockerfile
container_name: swapscript
volumes:
- ${DATA_PATH}/scripts:/data
environment:
- TZ
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "5"
depends_on:
- swapclient
restart: unless-stopped
command: ["/usr/bin/python3", "basicswap/scripts/createoffers.py",
"--host", "swapclient",
"--port", "${HTML_PORT}",
"--configfile", "/data/createoffers.json",
"--statefile", "/data/createoffers_state.json"]