f102.yml 795 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
version: '3.4'

x-logging:
  &default-logging
  options:
    max-size: '256m'
    max-file: '3'
  driver: json-file

volumes:
  foot-data:

services:
  #1-4个
  spider-1:
    image: tesou/base:1.0
    logging: *default-logging
    restart: always
    hostname: spider-1.foot
    volumes:
      - foot-data:/usr/local/apps/foot
    network_mode: "host"
    command: bash -c "cd /usr/local/apps/foot && chmod u+x ./FOOT000 && ./FOOT000 spider auto "

  #单个
  pub-1:
    image: tesou/base:1.0
    logging: *default-logging
    restart: always
    hostname: pub-1.foot
    volumes:
      - foot-data:/usr/local/apps/foot
    environment:
      ZOO_MY_ID: 1
    network_mode: "host"
    command: bash -c "cd /usr/local/apps/foot && chmod u+x ./FOOT000 && ./FOOT000 pub auto "