services:
  tianji:
    container_name: ${CONTAINER_NAME}
    restart: always
    image: moonrailgun/tianji:1.30.6
    networks:
      - 1panel-network
    ports:
      - ${PANEL_APP_PORT_HTTP}:12345
    environment:
      - DATABASE_URL=postgresql://${PANEL_DB_USER}:${PANEL_DB_USER_PASSWORD}@${PANEL_DB_HOST}:${PANEL_DB_PORT}/${PANEL_DB_NAME}
      - JWT_SECRET=${JWT_SECRET}
      - ALLOW_REGISTER=${ALLOW_REGISTER}
      - ALLOW_OPENAPI=${ALLOW_OPENAPI}
    labels:
      createdBy: "Apps"
networks:
  1panel-network:
    external: true
