2024-10-28 07:32:31 +00:00
|
|
|
services:
|
|
|
|
shopify:
|
|
|
|
restart: unless-stopped
|
|
|
|
image: cerc/laconic-shopify:local
|
2024-10-29 09:03:52 +00:00
|
|
|
depends_on:
|
|
|
|
faucet:
|
|
|
|
condition: service_healthy
|
2024-10-30 05:36:10 +00:00
|
|
|
command: ["bash", "-c", "./start-shopify.sh"]
|
2024-10-28 07:32:31 +00:00
|
|
|
environment:
|
|
|
|
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
|
|
|
|
CERC_SHOPIFY_GRAPHQL_URL: ${CERC_SHOPIFY_GRAPHQL_URL}
|
|
|
|
CERC_SHOPIFY_ACCESS_TOKEN: ${CERC_SHOPIFY_ACCESS_TOKEN}
|
|
|
|
CERC_FETCH_ORDER_DELAY: ${CERC_FETCH_ORDER_DELAY:-10000}
|
2024-10-29 05:17:31 +00:00
|
|
|
CERC_FAUCET_URL: http://faucet:3000/
|
2024-10-28 07:32:31 +00:00
|
|
|
CERC_ITEMS_PER_ORDER: ${CERC_ITEMS_PER_ORDER:-10}
|
|
|
|
volumes:
|
|
|
|
- shopify-data:/app/data
|
2024-10-29 05:17:31 +00:00
|
|
|
- ../config/laconic-shopify/start-shopify.sh:/app/start-shopify.sh
|
2024-10-28 12:12:03 +00:00
|
|
|
- ../config/laconic-shopify/product_pricings.json:/app/config/product_pricings.json
|
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
|
|
|
|
faucet:
|
|
|
|
restart: unless-stopped
|
|
|
|
image: cerc/laconic-shopify-faucet:local
|
|
|
|
command: ["bash", "-c", "./start-faucet.sh"]
|
|
|
|
environment:
|
|
|
|
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
|
2024-10-30 04:33:10 +00:00
|
|
|
CERC_LACONICD_RPC_ENDPOINT: ${CERC_LACONICD_RPC_ENDPOINT:-https://laconicd-sapo.laconic.com}
|
2024-10-28 12:12:03 +00:00
|
|
|
CERC_FAUCET_KEY: ${CERC_FAUCET_KEY}
|
2024-10-30 04:33:10 +00:00
|
|
|
CERC_LACONICD_CHAIN_ID: ${CERC_LACONICD_CHAIN_ID:-laconic-testnet-2}
|
2024-10-28 12:12:03 +00:00
|
|
|
CERC_LACONICD_PREFIX: ${CERC_LACONICD_PREFIX:-laconic}
|
2024-10-30 04:33:10 +00:00
|
|
|
CERC_LACONICD_GAS_PRICE: ${CERC_LACONICD_GAS_PRICE:-0.001}
|
2024-10-28 12:12:03 +00:00
|
|
|
volumes:
|
|
|
|
- faucet-data:/app/db
|
2024-10-28 13:10:49 +00:00
|
|
|
- ../config/laconic-shopify/start-faucet.sh:/app/start-faucet.sh
|
|
|
|
- ../config/laconic-shopify/config-template.toml:/app/environments/config-template.toml
|
2024-10-28 12:12:03 +00:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "nc", "-vz", "127.0.0.1", "3000"]
|
|
|
|
interval: 10s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 10
|
|
|
|
start_period: 5s
|
2024-10-28 07:32:31 +00:00
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
|
|
|
|
volumes:
|
2024-10-28 12:12:03 +00:00
|
|
|
shopify-data:
|
|
|
|
faucet-data:
|