version: '2'
services:

  ########
  # ops
  ########
  app_ops_data1:
    image: docker.alphabets.cn/data:0.0.1
    container_name: app_ops_data1
    volumes:
     - /data/LightDB

  app_ops1:
    image: docker.alphabets.cn/lightpy:0.0.5
    container_name: app_ops1
    hostname: app_ops1
    restart: always
    ports:
     - "20020:7000"
    environment:
      APPNAME: LightDB
      LIGHTDB_HOST: db.alphabets.cn
      LIGHTDB_PORT: 57017
      LIGHTDB_USER: light
      LIGHTDB_PASS: 2e35501c2b7e
      MASTER: "true"
    command: --init
    working_dir: /data/LightDB
    volumes_from:
     - app_ops_data1