basicswap/docker/production/compose-fragments/8_script.yml
tecnovert 89e0080173
docker: Fix script output.
Start python in unbuffered mode.
2023-03-09 16:44:59 +02:00

23 lines
760 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", "-u", "basicswap/scripts/createoffers.py",
"--host", "swapclient",
"--port", "${HTML_PORT}",
"--configfile", "/data/createoffers.json",
"--statefile", "/data/createoffers_state.json"]